Y
Hacker News
new
|
ask
|
show
|
jobs
by
jjav
812 days ago
> 30,000 line functions with gotos
The problem there is the 30K line function, not the goto!
2 comments
bluGill
812 days ago
30k functions are a problem but they are manageable if goto isn't used in them. I prefer not to but a have figured them out.
link
jjav
812 days ago
Wow! Longest single function I can think of having written is ~200 lines. I always feel bad when editing it but there's no useful way to break it down so I let it be. But a single 30,000 line function? Wow.
link
tazu
811 days ago
I'll take a 30k line function that does one thing over 30 1k line functions that are used once...
link
jjav
811 days ago
Agreed! Breaking into multiple functions for no reason other than style isn't smart either.
link