The two Cornerstones of Object-Oriented Programming
Posted by Marcus Wyatt on 12 August 2005
In this informative tutorial, you are introduced to code metrics that will help you measure how well your classes conform to the principles of Coupling and Cohesion.
For Cohesion, the “Lack of Cohesion in Methods” metric helps you understand and gauge how cohesive your class is and “Demeter’s Law” helps with Measuring Coupling between your classes.
I think if we can use these types of metrics to understand our code better and even try to incorporate them as part of our testing suite or productivity tools, we will make a huge improvement in building more flexible solution.
Like the author said:
“Make no mistake, these metrics are vital to measuring the quality of an application.”
tags: oop, codemetrics, development
Currently listening to: g (kevin roen nye 2001 remix) – Winamp *** 367. atb vs. pqm – let u go vs. you are sleeping (kevin