IfSQ
Repetitive code indicates poor design
Research Finding:
Copy and Paste is a design error.
IfSQ Defect Indicators based on this finding:
-
SPM-3—Copy/Paste Programming
An identical or largely similar section of code appears in two or more places in the same source code file.
Source:
Why You Should Use Routines, Routinely
- Steve McConnell
- Recorded 1998 in IEEE Software, 15, no. 4, July/August
- Pages 94-95