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

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.
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.
I'll take a 30k line function that does one thing over 30 1k line functions that are used once...
Agreed! Breaking into multiple functions for no reason other than style isn't smart either.