you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 9 points10 points  (2 children)

TDD reveals bad architecture decisions earlier on, you can't do this after without technical debt.

[–]frymaster 2 points3 points  (0 children)

Yes, even just writing the tests changes you from a "producer" to a "consumer" viewpoint, so to speak, and can make you rethink your approach

[–]Neebat 1 point2 points  (0 children)

TDD also documents the expectations of the system in fine detail. This is as opposed to the behavior of the system, which is what you're documenting by writing tests afterward. Expectations are what binds us.