SECTION 45 / 48

Red–Green–Refactor

1 min read

RED: express the requirement as a test, run it and see it fail. GREEN: write the minimum code needed to pass. REFACTOR: make the code modular and elegant while the tests still pass. Repeat.

Red–Green–Refactor
Red–Green–Refactor
Open image ↗
Red–Green–Refactor
YOUR STUDY PROGRESS

Finished this section? Save your progress.

Back to top ↑