Practicar TDD de manera efectiva va más allá de conocer el ciclo Red-Green-Refactor — implica dar pasos pequeños, escribir las pruebas correctas, hacer el paso de refactor adecuadamente, y aplicar criterio sobre cuándo TDD es apropiado. Cuando se hace bien, impulsa un buen diseño y código de alta calidad, bien probado.
Por qué es importante
1. RED — write ONE small failing test for the NEXT bit of behavior (run it, see it fail —
confirms the test works and the feature is missing)
2. GREEN — write the SIMPLEST code to pass (don't over-engineer; even "fake it" first)
3. REFACTOR — now improve the design (remove duplication, clean up) with tests as a safety net
→ SMALL steps; one behavior at a time; stay in short cycles.
