logoalt Hacker News

viktorcodeyesterday at 5:03 PM3 repliesview on HN

LoC is a good code quality metric, only it has to be inverted. Not "it wrote C compiler in 100 000 lines of code", but "in just 2000 lines of code". Now that is impressive and deserves praise.


Replies

prependyesterday at 9:07 PM

Not necessarily.

If I minimize my project and get everything on one line, is that good? I think not.

Measuring success based on how may or how few lines there are is a bad idea, I think.

Kerrickyesterday at 5:22 PM

I don't want to maintain an information system written in the style of code golf competitions, either.

I like the author's proposed "Comprehension coverage" metric. It aligns well with Naur's Programming as Theory Building.

hamuraijackyesterday at 5:28 PM

this is also easily gameable. Any language can easily be converted into a single LOC