top | item 33389936

(no title)

asdffdsa | 3 years ago

Exactly, more code isn't better

discuss

order

jacob019|3 years ago

Not only that, less code is better. The elegant and performant solution is the simple one, for example wireguard vs openvpn.

philliphaydon|3 years ago

Nope. Less code is not always better. Collapsing a loop into a single line lambda with single char variables doing 5 times is not elegant or better. It’s orders of magnitude worse.

Less code is more readable. But absolute minimal amount of code can be unreadable.

shapefrog|3 years ago

0 code is the best then?

geekraver|3 years ago

Quite. Code is a liability. LOC is an utterly idiotic metric of programmer contribution, as it incentivizes increasing liability, over all sorts of other better contributions like good design, more automation, mentoring, customer obsession, etc.

(And for those arguing that “but the least amount of lines is not necessarily best”, yes, of course, that can obscure logic; the point isn’t to flip the value of LOC as a metric, the point is to not treat it as a good metric).