3 ms·
What an arrogant, wordy, and partly wrong take on this matter. No, LoC is not a dumb metric. In the same way that cognitive complexity, code coverage, and simi
by imiric 1y ago
What an arrogant, wordy, and partly wrong take on this matter.
No, LoC is not a dumb metric. In the same way that cognitive complexity, code coverage, and similar metrics aren't. CC is definitely not "superior" to LoC, it's just different.
These are all signals that point to a piece of code that might need further attention. It is then up to the developer to decide whether to do something about it, or not.
You know what's dumb? Being dogmatic, one way or the other. There are very few hard rules in software development—they're mostly tradeoffs. So whenever I hear someone claiming that X is always bad or always good, I try to poke holes in their argument, or just steer clear from their opinion.