3 ms·
I think this applies on every scale. Not just writing more elegant code but also just writing code in smaller units and having a prejudice against large methods
by InclinedPlane 14y ago
I think this applies on every scale. Not just writing more elegant code but also just writing code in smaller units and having a prejudice against large methods/classes/components. I've noticed a lot of devs have a mental block about things like one-line methods or extracting a single conditional test into a method and other trchniques that really do help make your code clearer.
The more experienced I get the more I come to view big code as an anti-pattern / code smell.