- Summary
- Never write even single line of duplicate code , make them a shared code
- If you have just two lines of code that is doing almost same job , prefer to refactor them as separate shared function.
- Applicability
- Throughout the development cycle, particularly during implementation and coding.
- References
- http://programmer.97things.oreilly.com/wiki/index.php/Don't_Repeat_Yourself
|
|