|
|
|
|
|
by sklivvz1971
4837 days ago
|
|
This article misunderstands TDD completely. In TDD, the tests are your specifications. Therefore, any code that passes the tests is formally correct - even though it should always be minimal (YAGNI). In fact, TDD is not simply "tests first". It is: write ONE test, make it pass with the MINIMUM amount of code, refactor, loop. |
|
I rather write proper designed code and write the tests afterwards, before delivering the code.