Avoid Classes with a High Lack of Cohesion - variant (C# .Net) | CAST Appmarq

Avoid Classes with a High Lack of Cohesion - variant (C# .Net)


Rule Definition
Cohesiveness of Methods within a Class is desirable, since it promotes encapsulation. Low cohesion increases complexity, thereby increasing the likelihood of errors during the development process.

Remediation
Lack of cohesion implies Classes should probably be split into two or more sub/classes.

Reference
A Metrics Suite for Object Oriented Design, Chidamber, S.R. and C.F. Kemerer, IEEE Transactions on Software Engineering, 1994 Comparison of Various Lacks of Cohesion Metrics, Taranjeet Kaur and Rupinder Kaur, International Journal of Engineering and Advanced Technology (IJEAT), February 2013

Related Technologies

Health Factor

  Total Quality Index


Technical Criterion
Programming Practices - Modularity and OO Encapsulation Conformity

About CAST Appmarq

CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.

Benchmark Statistics

Global Compliance

45.25%

Total Violations
29,804
Total Opportunities
54,433
Average Violations / App.
387.06
The compliance score represents 1 minus the ratio between the number of times a rule has been violated compared to the number of opportunities in a set of applications that the rule could have been violated.

Industry Insights

Energy

32.80%

Software ISV

22.52%

Manufacturing

54.64%