Test-Driven Development
XP suggests you write your tests before your code
- Write code only when you're prompted by a failing test
- Forces you to think about the code you're about to write
- Forces you to design an API for subroutines you're about to write
- Means you won't forget to write the tests later
Tricky to get started
Hard to give up once you really understand it
Prev | toc | Next