4 ms·
I think anything that takes 10 lines instead of 100 is better. Easier to read, use, and scale. I cannot think of any exception to this.
by tipiirai 3y ago
I think anything that takes 10 lines instead of 100 is better. Easier to read, use, and scale. I cannot think of any exception to this.
- syndicatedjelly 3y agoWhat about something that takes 10 lines, repeated 3 times across a codebase; versus a single implementation that takes 100 lines but is only used once? This appears to be the breaking point in web dev. I wish someone could properly articulate why the first option is so bad, without invoking DRY (Don’t Repeat Yourself) or some bastardization of SOLID Principles.
- tipiirai 3y agoI think the 100-line version is better in the above case