3 ms·
Lines of code is a byproduct, not the goal. Code is an artifact, undesired debris. The fewer lines, the better.
by kookamamie 1y ago
Lines of code is a byproduct, not the goal.
Code is an artifact, undesired debris.
The fewer lines, the better.
- Koffiepoeder 1y agoWell, like everything it's probably a balance to strike. Otherwise you may end up with highly golfed IOCCC-style code in production, which I would definitely not recommend.
- _Algernon_ 1y agoI've seen advent of code one-liners, and sometimes more lines is better than a one-liner.
- kookamamie 1y agoYes, my thinking here isn't about the semantics of code, whether it is written in dense or terse form, but about the more meta level - code itself is something we write to achieve some goal, it shouldn't be the goal by itself. As an example, as a company is audited for their valuation, it is not the code amount itself that is valuable. In many ways it can be seen as a burden, as you'll need to maintain code over time.