Re:Measuring Software Complexity: What Metrics to Use?
by pfdietz on Sunday November 28, 2021 @11:35AM
(#29370249)
There were attempts to predict bugs by looking at complexity metrics. As I recall, the research found that when you adjusted for code size, none of the metrics mattered. In other words, just use LOCs as your metric.
[ Parent
| on HN ]
Re:Measuring Software Complexity: What Metrics to Use?
by kqr on Sunday November 28, 2021 @04:18PM
(#29373146)
This is correct. https://scholar.google.com/scholar?hl=en&as_sdt=0%2C5&q=code...
Re:Measuring Software Complexity: What Metrics to Use?
by marcosdumay on Sunday November 28, 2021 @01:20PM
(#29371340)
AFAIK the one unambiguously relevant metric for how many bugs you will find in a codebase is how many its "clients" define as acceptable.
Any kind of internal code quality affects the productivity of the debugging procedure, not the final number of bugs.