Are CK Metrics still considered useful? Is there an open source tool to help?

Posted by DeveloperDon on Programmers See other posts from Programmers or by DeveloperDon
Published on 2012-09-06T05:29:20Z Indexed on 2012/09/06 9:49 UTC
Read the original article Hit count: 471

Chidamber & Kemerer proposed several metrics for object oriented code. Among them, depth of inheritance tree, weighted number of methods, number of member functions, number of children, and coupling between objects. Using a base of code, they tried to correlated these metrics to the defect density and maintenance effort using covariant analysis.

Are these metrics actionable in projects? Perhaps they can guide refactoring. For example weighted number of methods might show which God classes needed to be broken into more cohesive classes that address a single concern.

Is there approach superseded by a better method, and is there a tool that can identify problem code, particularly in moderately large project being handed off to a new developer or team?

© Programmers or respective owner

Related posts about object-oriented

Related posts about code