Red, Green, Refactor is your mantra for [[test driven development]]. When writing code, follow these steps:
1. Write a failing test
2. Write the minimal implementation necessary to pass the test
3. Refactor the code (and confirm the test still passes)