3 ms·
I think these results may be misleading -- most the methods I know of that are >200 lines are implementing some kind of large case statement. Often, these are
by jderick 18y ago
I think these results may be misleading -- most the methods I know of that are >200 lines are implementing some kind of large case statement. Often, these are auto-generated files, not hand-coded ones. So it may not be a fair comparision.
- waldrews 18y agoAgreed; selection bias - presumably the code base analyzed was made by experienced programmers with instincts tuned to creating smaller functions. When we do observe larger functions, there must have been a specific reason to do it, like a big case statement or text generation. The programmer is making an exception, and there's probably a structural reason for it, the logic is probably simpler, and extra attention will be paid.