Study reveals defect truth: LoC predicts bugs, comments correlate positively

vboykis · x · 2026-08-28

A software engineering study found that metrics like function length and cyclomatic complexity are just proxies for lines of code: more code means more bugs. Counterintuitively, heavily commented files had more defects, not fewer. This contradicts the tendency of LLMs to generate verbose comments. Verbose languages also correlate with higher defect rates.

Original post →

More from coding & agent

coding & agent channel →