←back to thread

-2000 Lines of code

(www.folklore.org)
502 points xeonmc | 1 comments | | HN request time: 0.203s | source
Show context
rossant ◴[] No.44385749[source]
I think lines of code could be an interesting and valuable metric.

If the lower (negative) score, the better (given a fixed set of features).

“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.” ― Antoine de Saint-Exupéry, Airman's Odyssey

replies(3): >>44385798 #>>44386761 #>>44387419 #
1. sixthDot ◴[] No.44387419[source]
Halstead complexity ([0]) might interest you. It's a semi-secret sauce based on the count of operators and operands that tells you if your function is "shitty".

[0]: https://en.wikipedia.org/wiki/Halstead_complexity_measures