3 ms·
> 30,000 line functions with gotos The problem there is the 30K line function, not the goto!
by jjav 3y ago
> 30,000 line functions with gotos
The problem there is the 30K line function, not the goto!
- bluGill 3y ago30k 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.
- jjav 3y agoWow! 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.
- tazu 3y agoI'll take a 30k line function that does one thing over 30 1k line functions that are used once...
- jjav 3y agoAgreed! Breaking into multiple functions for no reason other than style isn't smart either.