2 ms·
Those guidelines should (my personal position) be taken as advisory, and never as hard rules. Functions should be “small enough, that a less than gifted can und
by f1shy 4y ago
Those guidelines should (my personal position) be taken as advisory, and never as hard rules. Functions should be “small enough, that a less than gifted can understand it”. Is difficult to measure in lines. Best example is a big switch with 10 cases. Artificially breaking that in smaller pieces is not helpful.
I have a soft rule of 3 to 7 different control structures (if, for, case, etc) in total, and 2 or 3 nested.