The code says everything once and only once, which is the essence of good design. -- Martin Fowler
[Time: 4:44 mins]
- Repititive code makes maintainance more difficult
- There are more places to change
- We may forget to change some of them
- Increases probability of bugs
- Types of repitition
- In methods in a class
- Accross the entire software
Example 1: DRY violated
public class Account { |
Java2html |
public class Account { |
Java2html |
Resources:
- Discuss this post in the learning forum.
Note: This text was originally posted on my earlier blog at http://www.adaptivelearningonline.net
Comments