Object Oriented Software Engineering   View all facts   Glossary   Help
subject > practice > duplication of code
Next practiceencapsulation    Uppractice    Previous practicetesting strategy   

duplication of code comparison table
Subject be not avoid avoid by is a kind of is a subtopic of have disadvantage is a synonym of
practice   subject   
duplication of codea kind of reusebecause it increases the total volume of code and means that if you change the code in one place, then you might forget to change the code in the other placescreating a separate method that has the common code, and calling it from the original location and any other needed locationspracticeProgramming Style Guidelineswhen there are two or more occurrences of the same or similar code in the system, any changes made (e.g. to fix defects) will have to be made in all clonescloning

Next practiceencapsulation    Uppractice    Previous practicetesting strategy