An Empirical Study of Software Design Practices
Findings relevant to IfSQ Standards:
- A study of 450 routines found that 50 percent of highly cohesive programs were fault free, compared to only 18 percent of routines with low cohesion
- 46 percent of routines with no unused variables had no errors compared to only 17 to 29 percent for those with one or more unreferenced variables
IfSQ Defect Indicators:
SP-4—Module Not Cohesive
Routines which are cohesive are typically easier to modify, easier to fix and contain less errors than routines wth diverse tasks.,
There are unreferenced variables in the code. Unreferenced variables are a strong indicator for other errors.