Write tests before writing the code they validate. Ensures code correctness and supports refactoring.