IfSQ
Better to write cohesive routines
Research Finding:
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.
IfSQ Defect Indicators based on this finding:
-
SP-4—Module Not Cohesive
Routines which are cohesive are typically easier to modify, easier to fix and contain less errors than routines with diverse tasks.
Source:
An Empirical Study of Software Design Practices
- David N. Card, Victor E. Church, and William W. Agresti
- Recorded 1986 in IEEE Transactions on Software Engineering, SE-12, no. 2, February
- Pages 264-71