3 ms·
> Nothing is easier to read and understand than code which just flows straight through from top to bottom of a big function It really depends on how long the
by imron 10y ago
> Nothing is easier to read and understand than code which just flows straight through from top to bottom of a big function
It really depends on how long the function is. Ignoring stuff like variable declarations and verifying constraints at the beginning of a function, I personally find anything longer than a screen or two is usually better off (in terms of readability) being in its own function.