Duplicate Code - How Duplicates Are Created

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:

    Fame sometimes hath created something out of nothing. She hath made whole countries more than nature ever did, especially near the poles, and then hath peopled them likewise with inhabitants of her own invention, pigmies, giants, and amazons: yea, fame is sometimes like unto a mushroom, which Pliny recounts to be the greatest miracle in nature, because growing and having no root, as fame no ground of her reports.
    Thomas Fuller (1608–1661)