duplication of code | is a synonym of cloning | |
can be avoided by creating a common superclass if the duplication occurs in two separate classes | |
can be avoided by creating a separate method that has the common code, and calling it from the original location and any other needed locations | |
has disadvantage when 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 clones | |
is not a kind of reuse | |
is a subtopic of Programming Style Guidelines | |
is a kind of practice | |
should be avoided because 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 places | |