Project - Refactoring "Dirty" Code using TDD
Practice real-world refactoring:
- write characterization tests (what the code does today)
- refactor in small steps
- keep tests green
Approach
Section titled “Approach”- find a messy function (long, many branches)
- write tests for current behavior
- refactor into smaller functions
- don’t change behavior while refactoring
- use coverage to find untested paths
- commit frequently
pch.coffeeTagline
pch.coffeeCtapch.feedbackHeading
pch.feedbackSubheading