Re:-2000 Lines Of Code
by JoeAltmaier on Wednesday May 30, 2012 @08:36AM
(#4042486)
- Fewer SLOC means less code to compile and execute.
- Fewer SLOC means more code fits on one page.
- Fewer SLOC means it may be easier to explain/document/remember what it does.
My rationales:
- More SLOC means more places for a bug to hide.
- More SLOC means more logic to have to reason about.
- More repetition leads to more SLOC.
- More repetition increases the chance that a bug can be fixed in one spot but not in others.
- More repetition increases the chance for regression bugs resulting from updates not being fully propagated
Anecdotally, on my team it seems that we tend to have the least quality issues in the stuff that's written by folks who produce the most factored code.