The DRY principle: Don't Repeat Yourself.
IfSQ Defect Indicators based on this finding:
Numeric literals (other than 0 or 1) have been hard-coded into the program.
A string literal has been hard-coded into a statement that influences the flow of a program.
An identical or largely similar section of code appears in two or more places in a program or set of programs. Copy and Paste is considered by many industry experts to be a design error.
Copyright © 2005, 2012 by IfSQ, Institute for Software Quality. All Rights Reserved.