3 ms·
It seems like it should be objective, but it isn't. Because you get people writing ridiculous "clever" one-liners that are difficult to parse and understand. Th
by joekrill 5y ago
It seems like it should be objective, but it isn't. Because you get people writing ridiculous "clever" one-liners that are difficult to parse and understand. That clever one-liner could be re-written to do the exact same thing and be much more clear and readable, but it would take, say, 8 lines instead of 1.
Then there's the subjectiveness of what you actually consider a "line".
- Buttons840 5y agoFair. "Less code" is probably a better metric, but still has the same problem you describe. Still, some argue that an 8 line for-loop is better than a 1 line map or something, but a map is more constrained in what it can do than a free style for-loop. And 8 vs 1 lines in some corner of the program is less important than whether or not we make it a coding standard to write and use AbstractBeanThingyamabobs for all our stuff, etc.
- Pokepokalypse 5y agoand then there's "syntactic sugar"