How Duplicates Are Created
There are a number of reasons why duplicate code may be created, including:
- Copy and paste programming, in which a section of code is copied "because it works". In most cases this operation involves slight modifications in the cloned code such as renaming variables or inserting/deleting code.
- Functionality that is very similar to that in another part of a program is required and a developer independently writes code that is very similar to what exists elsewhere.
- Plagiarism, where code is simply copied without permission or attribution.
Read more about this topic: Duplicate Code
Famous quotes containing the word created:
“The major men
That is different. They are characters beyond
Reality, composed thereof. They are
The fictive man created out of men.
They are men but artificial men.”
—Wallace Stevens (18791955)