Workflows of Refactoring by Martin Fowler
TDD "red-green-refactor cycle"
- Red: Add a Test
- Green: Make it work:
- Refactor: Make it Clean
- Adding code
- Refactoring
This is often referred to as the boy-scout rule.
Always leave the code better than when you found it.
clear code, like clear writing, is hard to do
"People should be always on the look-out for substandard code. Often as a team learns, code written a few months ago can now seem lacking, and should be fixed."
Preparatory Refactoring
A common analogy for this is prep work before painting.
Planned Refactoring
schedule refactoring as part of their planned work,
Long-Term Refactoring
No comments:
Post a Comment