4 ms·
> Does the number of bugs grow linearly with code size? Sub-linearly? Super-linearly? My gut feeling still says “sub-linear”. Depends on whay you're doing; are
by yarg 4y ago
> Does the number of bugs grow linearly with code size? Sub-linearly? Super-linearly? My gut feeling still says “sub-linear”.
Depends on whay you're doing; are you implementing features, refactoring, or fixing bugs?
Generally, I'm guessing that the number of bugs will be linear, but the number of bugs in common code paths will be logarithmic.
Or perhaps that the likelyhood of a bug in a given piece of code decays exponentially with the age of that code.
There's also the issue of developer familiarity with the code base, and where in the code base the changes are occurring.