2 ms·
I agree that LOC is a lousy productivity measure but I think think it could be decent health measure. The distribution of method line counts looks like it's a
by michaelfeathers 12y ago
I agree that LOC is a lousy productivity measure but I think think it could be decent health measure.
The distribution of method line counts looks like it's a power law. In code bases I've looked at there are way more methods with one or two lines - the distribution tapers down to the couple of large methods we all have in our code. My guess is that the coefficients of the distribution tell us something about health. I've seen some very good code with distributions that taper down very quickly.
No, I really think you have to separate LOC as a productivity metric from these other uses.