News for hackers. Stuff that matters.
Re:Programming quotes by FarProfessor on Thursday March 25, 2021 @10:56AM (#26581049)
"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - yup!
Re:Programming quotes by jandrese on Thursday March 25, 2021 @03:20PM (#26584266)
Reminds me of another quote:

"Software ended up saving the Defense Aerospace industry. It was the only way of adding cost that didn't also add weight."

Re:Programming quotes by zaat on Thursday March 25, 2021 @02:23PM (#26583615)
I don't see how this misses anything, weight as progress criteria isn't wrong because of assembly time but due to the effect of added weight
Re:Programming quotes by dehrmann on Thursday March 25, 2021 @01:05PM (#26582715)
This misses something, though. The problem with lines of code isn't that it discounts assembly time, it's that it rewards complexity.
Re:Programming quotes by Jtsummers on Thursday March 25, 2021 @02:34PM (#26583719)
The point of the analogy is that both metrics are, fundamentally, useless. A 787 (unloaded) weighs about 175 tons. Does this mean that putting 175 tons of material at the end of the assembly line corresponds to the complete and proper assembly of a 787? Nope. There are other far more useful measures: does it look right, is it fitted correctly, does it pass QA (testing), is it composed of the correct pieces or just things that resemble them?

In software, LOC is, itself, a useless measure for progress for the same reason: It indicates nothing of value. I have inherited programs in the 10s and 100s of thousands of lines of code that I was able to reduce to less than 20% of their initial size without loss of capability, and generally with improved performance, stability, and maintainability. The right measures are around functionality and the other meaningful qualities (stability, security, testability, etc.).

Re:Programming quotes by rileymat2 on Thursday March 25, 2021 @10:44PM (#26588275)
My interoperation was always that both lines of code and airplane weight was harmful to the end product.
Re:Programming quotes by swader999 on Thursday March 25, 2021 @11:38AM (#26581589)
I'm stealing this one.