News for hackers. Stuff that matters.
Re:The most unethical thing I was asked to build while worki... by fnordian_slip on Tuesday November 08, 2022 @04:01AM (#33517307)
They are bad metrics.

Maybe it helps you understand if you think about how easy they are to game. You could just as well create useless lines of documentation as you could create useless lines of code.

Goodhart's law says:

"When a measure becomes a target, it ceases to be a good measure".

Re:The most unethical thing I was asked to build while worki... by charcircuit on Tuesday November 08, 2022 @05:02AM (#33517640)
By your logic any metric is a bad metric is a bad metric because it can be gamed. In your model of the world good metrics don't exist.
Re:The most unethical thing I was asked to build while worki... by fnordian_slip on Tuesday November 08, 2022 @08:20AM (#33518635)
I believe that you maybe misread me, which usually means that I haven't made myself clear enough.

I'm not saying "LoC is a bad metric because it can be gamed". Most metrics can, if you work hard enough.

I'm saying "LoC is a bad metric because it can be gamed by a child within a couple of minutes".

It's the difference between lock made of a tin sheet and a proper heavy-duty steel lock. People like the lockpicking lawyer can still pick the latter, but the former is so weak that it should never be relied upon.

Re:The most unethical thing I was asked to build while worki... by tanseydavid on Tuesday November 08, 2022 @05:51PM (#33525390)
It seems as if the gaming instinct is only at play if LOC is used as a productivity metric.

Avoiding LOC measurement for other (non-productivity) purposes is a mistake.