←back to thread

-2000 Lines of code

(www.folklore.org)
498 points xeonmc | 1 comments | | HN request time: 0.211s | source
Show context
kookamamie ◴[] No.44385043[source]
Lines of code is a byproduct, not the goal.

Code is an artifact, undesired debris.

The fewer lines, the better.

replies(2): >>44385144 #>>44385465 #
_Algernon_ ◴[] No.44385465[source]
I've seen advent of code one-liners, and sometimes more lines is better than a one-liner.
replies(1): >>44385495 #
1. kookamamie ◴[] No.44385495[source]
Yes, 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.