3 ms·
> other times I'll spend days just breaking up thousand line functions into simpler blocks just to be able to follow what's going on Absolutely, I'll break up
by SoftTalker 2y ago
> other times I'll spend days just breaking up thousand line functions into simpler blocks just to be able to follow what's going on
Absolutely, I'll break up a long block of code into several functions, even if there is nowhere else they will be called, just to make things easier to understand (and potentially easier to test). If a function or procedure does not fit on one screen, I will almost always break it up.
Obviously "one screen" is an approximation, not all screens/windows are the same size, but in practice for me this is about 20-30 lines.