logoalt Hacker News

smoeyesterday at 1:06 PM8 repliesview on HN

It is kind of funny that throughout my career, there has always been pretty much a consensus that lines of code are a bad metric, but now with all the AI hype, suddenly everybody is again like “Look at all the lines of code it writes!!”

I use LLMs all day every day, but measuring someone or something by the number of lines of code produced is still incredibly stupid, in my opinion.


Replies

snovv_crashyesterday at 8:53 PM

I wonder if we can use the compression ratio that an LLM-driven compressor could generate to figure out how much entropy is actually in the system and how much is just boilerplate.

Of course then someone is just going to pregenerate a random number lookup table and get a few gigs of 'value' from pure garbage...

reactordevyesterday at 1:09 PM

Microsoft never got that memo. They still measure LoC because it’s all MBAs.

show 2 replies
austinthetacoyesterday at 2:58 PM

I believe the "look at all the lines of code" argument for LLMs is not a way to showcase intelligence, but more-so a way to showcase time saved. Under the guise that the output is the/a correct solution, it's a way to say "look at all the code I would have had to write, it saved so much time".

show 1 reply
randusernameyesterday at 3:30 PM

> measuring someone or something by the number of lines of code produced is still incredibly stupid, in my opinion.

Totally agree. I see LOC as a liability metric. It amazes me that so many other people see it as an asset metric.

torginusyesterday at 3:32 PM

Yeah. I honestly feel 1m LOC is enough to recreate a fully featured complete modern computing environment if one goes about it sensibly.

jayd16yesterday at 3:41 PM

I think the charitable way to read the quote is that 1M LOC are to be converted, not written.

make3yesterday at 3:12 PM

it's still a bad metric and OP is also just being loose by repeating some marketing / LinkedIn post by a person who uses bad metrics about an overhyped subject

martinflackyesterday at 2:04 PM

Ironically, AI may help get past that. In order to measure "value chunks" or some other metric where LoC is flexibly multiplied by some factor of feature accomplishment, quality, and/or architectural importance, an opinion of the section in question is needed, and an overseer AI could maybe do that.