exceptionz

Thoughts on Technology, Methodology and Programming.

The two Cornerstones of Object-Oriented Programming

Posted by Marcus Wyatt on 12 August 2005

Coupling and Cohesion: The Two Cornerstones of OO Programming: “by Samudra Gupta

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: , ,

Currently listening to: g (kevin roen nye 2001 remix) – Winamp *** 367. atb vs. pqm – let u go vs. you are sleeping (kevin

Advertisements

One Response to “The two Cornerstones of Object-Oriented Programming”

  1. eswar said

    i’m sorry!
    i could not get any thing in this.
    bye

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: