TWIRRR
T = ?
Think:
Think about the code that you want to write.
TWIRRR
W = ?
Write a test:
Write a test that proves what you would write.
TWIRRR
I = ?
Implement so that the test passes:
Write the code so that the test passes.
TWIRRR
R = ?
Run all unit tests and fix failures:
Run tests written for preexisting parts and fix failures.
TWIRRR
R = ?
Refactor:
Clean up the code.
TWIRRR
R = ?
Run all unit tests and fix failures:
Again, run tests written for preexisting parts and fix failures.