The first time you do something, you just do it. The second time you do something similar, you wince at the duplication, but you do the duplicate thing anyway. The third time you do something similar, you refactor.
- Chapter 2. Principles in Refactoring
- from Refactoring: Improving the Design of Existing Code
- Publisher: Addison-Wesley Professional
- Released: June 1999
rule of three
Share this highlighthttp://www.safaribooksonline.com/a/refactoring-improving-the/57210/