Red, green, refactor
Test-driven development (TDD) is a tiny loop: write a test that fails (red), write just enough code to pass (green), then improve the code while every test stays green (refactor). Each loop takes minutes.
Test-driven development (TDD) is a tiny loop: write a test that fails (red), write just enough code to pass (green), then improve the code while every test stays green (refactor). Each loop takes minutes.