CSC/ECE 517 Fall 2007/wiki2 7 as: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 5: Line 5:
== Cohesion & Coupling ==  
== Cohesion & Coupling ==  


A compact way to define coupling is as follows,
Coupling is simply defined as the degree of interdependence between modules or its like a measure of the strength of interconnection of modules or objects.
- the degree of interdependence between modules.
- a measure of the strength of interconnection


• The more the connections between one module and the rest, the harder to understand that module, the harder to re-use that module in another situation, the harder it is to isolate failures caused by faults in the module
• The more the connections between one module and the rest, the harder to understand that module, the harder to re-use that module in another situation, the harder it is to isolate failures caused by faults in the module
• The lower the coupling the “better”.
• The lower the coupling the “better”.

Revision as of 01:56, 24 October 2007

Topic

Cohesion and coupling Cohesion and coupling are concepts that are reasonably easy to understand, but nonetheless, it is challenging to find good examples that are succinct. Browse the hundreds of Web pages that attempt to explain these concepts, picking your favorite examples. Many of these pages mention related concepts; list some of them and explain how they relate to cohesion and coupling. Be sure to mention the metrics that can be used to measure how well a program conforms to the principles of high cohesion and low coupling.

Cohesion & Coupling

Coupling is simply defined as the degree of interdependence between modules or its like a measure of the strength of interconnection of modules or objects.

• The more the connections between one module and the rest, the harder to understand that module, the harder to re-use that module in another situation, the harder it is to isolate failures caused by faults in the module • The lower the coupling the “better”.