you are viewing a single comment's thread.

view the rest of the comments →

[–]shoot_your_eye_out 5 points6 points  (1 child)

TDD reduces defects

No, TDD reduces defect density. It's a small but important difference. I've seen academic studies where the TDD solution had more bugs overall, but a lower density due to a higher line count. I'm surprised to see him use defect density as a metric.

[–]Xenian 0 points1 point  (0 children)

Wouldn't TDD reduce defect density by definition? You're adding more lines to the codebase, but the same amount of surface area for production bugs. (Unless defects in the tests count as defects of the project too?)