Coupling (computer programming): Difference between revisions

Content deleted Content added
High Cohesion: copy edit
renaming section "Related patterns" to "How to achieve low coupling". Rewrite section.
Line 62:
*Difficult to reuse a class because most applications won’t need a random set of operations attached to a class.
 
=== RelatedHow patternsto achieve low coupling ===
AlthoughOne low coupling is a desirable goal, and this goal provides useful guidance, the description of the pattern does not tell howmeasure to actually achieveachive low-coupled design in most cases.coupling is [[Functionalfunctional design]]: it limits the responsibilities of modules. Modules with single responsibilities usually need to communicate less with other modules, and this has the virtuous side-effect of reducing coupling and increasing cohesion in many cases.
 
==See also==