Why does TDD work?
- by CesarGon
Test-driven development (TDD) is big these days. I often see it recommended as a solution for a wide range of problems here in Programmers SE and other venues. I wonder why it works.
From an engineering point of view, it puzzles me for two reasons:
The "write test + refactor till pass" approach looks incredibly anti-engineering. If civil…