REFACTORING-BASICS5 MIN READ
Coach Red-Green-Refactor Without Skipping Green
Use the TDD red-green-refactor rhythm to sequence design cleanup.
Ben BN Pairing partner R Red G Green R2 Refactor Pairing moment 20 sec Still red The failing discount-rounding test is open, and Ben wants to redesign before making it pass. The risk is mixing missing behavior with structural change. 1 red test 2 callers duplicate rounding
Read the full lesson
Sign up free — one personalized lesson every day, matched to your role and goals.
Already have an account? Sign in