News for hackers. Stuff that matters.
Re:-2000 Lines of Code by zac23or on Saturday March 23, 2024 @09:07AM (#39799649)
Counting lines of code as a production metric is very stupid. I remember solving an unsolvable 20 years old bug with a line of code, another 3 years old with a order by. How to measure the impact of a line of code? And in my experience, bad programmers write a lot more code...

I will never forget the story[1] of a Microsoft developer rewriting a piece of IBM code that had 33 thousand characters, after rewrite ... 220. This generated a war because MS's work was... negative.

[1] https://archive.org/details/bigbluesunmaking00carr/page/4/mo... page 101

Re:-2000 Lines of Code by bdw5204 on Saturday March 23, 2024 @10:17AM (#39800088)
Using production metrics as a whole is very stupid and a good way to get devs to optimize for the metrics rather than quality work. A contemporary example would be a company that promotes for "impact" (i.e. launching new products) which is a great way to have a bunch of failed products that nobody maintains!
Re:-2000 Lines of Code by gabrielhidasy on Saturday March 23, 2024 @10:31AM (#39800195)
I know at least a few many-hundred-billion dollar companies that fit that description...
[dead]
Re:-2000 Lines of Code by rightbyte on Monday March 25, 2024 @07:10AM (#39814768)
Ye and you end up with blame games and hot potatoes being passed around.

Bug count metrics incentives "don't touch anything" and coding with feuture flags and globals to limit the scope of change and circumvent the architecture.

Like, just don't do metrics and have the management actually review the work of their subordinates if that is important to follow up on. Actual management can't be compressed to a acting on some scalar values.

Re:-2000 Lines of Code by barcist on Sunday March 31, 2024 @10:42AM (#39884723)
Objective measures are a good thing. Otherwise you just end up with some subjective opinions nitting bro culture even closer together.
Re:-2000 Lines of Code by rented_mule on Saturday March 23, 2024 @01:56PM (#39801794)
As your examples indicate, one reason it's a bad production metric is that it's a reasonable measure of the burden carried by the maintainers of the codebase. The production metric point of view classifies code as an asset. It's closer to the truth to view the functionality as an asset, and the code itself as a liability.
Re:-2000 Lines of Code by coffeemug on Saturday March 23, 2024 @02:05PM (#39801876)
I’m sure there are engineers who fix a critical bug every few months and generate millions of dollars of value, but as a general rule great engineers tend to be prolific and engineers who aren’t prolific tend to not be great.
Re:-2000 Lines of Code by syndicatedjelly on Saturday March 23, 2024 @02:49PM (#39802224)
Engineers who are obsessed with greatness tend to not be great either
Re:-2000 Lines of Code by talsperre on Sunday March 24, 2024 @09:05PM (#39812001)
In my opinion, there is still some relation between LoC and engineering output over a long period of time. Some of the greatest computer scientists and engineers have insane code outputs and I believe it does directly translate into impact in some ways. The issue is when Loc becomes a metric to measure performance. At that point, we have an instance of Goodhart's Law: “When a measure becomes a target, it ceases to be a good measure.”.