2 ms·
I've often found that having all the code that's doing one thing in the same place is better than splitting it up into a bunch of functions just to keep rowcoun
by MikkoFinell 9y ago
I've often found that having all the code that's doing one thing in the same place is better than splitting it up into a bunch of functions just to keep rowcount low. It makes it easier to step through and reason about what is going on if all the steps of a logical sequence are actually laid out in a sequence (instead of intermittently jumping to other files). Whenever I find a function that I discover is only called in one place I just inline it, and in my opinion that improves the code every time. Abstraction is important, but understandability is more important.
- jdblair 9y agoThe row and column limit is more of a guideline, not a hard and fast rule.