You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Run the tests and you will find that the test fails.
* It's time for the REFACTOR stage. Now that we have a
* failing test, we can go and improve our existing code.
And in Part 18, this comment appears:
* Since our tests are GREEN, maybe now is the time
* to enter the REFACTOR stage and try to improve our
* code.
Part 7 suggests the order is Red - Refactor - Green, while other parts tells us it's Red - Green - Refactor. Which is it?
Thanks!
The text was updated successfully, but these errors were encountered:
Quiet late for this conversation but leaving a clarification here for others.
The paragraph before that suggests,
* You know what, though? I'm not all that pleased
* with our parse method. There's a fair bit of
* repetition in there.
To make it more clear, the suggested order for TDD is always Red - Refactor - Green - Improve - Green. The last two stages is what the paragraph above is referring to. This is in cases where new functionality is added or improvements are done.
Part 07 tells us the following:
And in Part 18, this comment appears:
Part 7 suggests the order is Red - Refactor - Green, while other parts tells us it's Red - Green - Refactor. Which is it?
Thanks!
The text was updated successfully, but these errors were encountered: