Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. Duplicate code is
a computer programming term for a sequence of source code that occurs
more than once, either within a program or across different programs
owned or maintained by the same entity. Duplicate code is generally
considered undesirable for a number of reasons. A minimum requirement is
usually applied to the quantity of code that must appear in a sequence
for it to be considered duplicate rather than coincidentally similar.
Sequences of duplicate code are sometimes known as clones. The following
are some of the ways in which two code sequences can be duplicates of
each other: character-for-character identical, character-for-character
identical with white space characters and comments being ignored,
token-for-token identical, token-for-token identical with occasional
variation