3 ms·
> Fortunately, the science here me to indicate the opposite: the less code you have, the fewer defects per LoC you'll have I judged things conditional on the f
by leto_ii 6y ago
> Fortunately, the science here me to indicate the opposite: the less code you have, the fewer defects per LoC you'll have
I judged things conditional on the fact that a bug exists. If you apply the technique of counting bugs/loc blindly you may end up favouring longer, more tangled code. Think about it this way: if your goal is low bugs/loc then when a bug shows up you will be incentivized to fix it in a way that increases loc, instead maybe of simplifying thing. This will lead to fewer bugs and lower bug density.