4 ms·
If they’re operations used in a hundred places, then they should be whatever size they need to be. Of course there are a lot of 5-line functions in that set, a
by swatcoder 4y ago
If they’re operations used in a hundred places, then they should be whatever size they need to be.
Of course there are a lot of 5-line functions in that set, and also some 500-lines functions and also many functions that recurse or stack very deeply, and also some very shallow ones. They’re polished stones.
But function length isn’t a useful goal in itself and if it’s made to be, you’re deprioritizing the many other factors that matter.