Coupling (computer programming): Difference between revisions

Content deleted Content added
m fixed dashes using a script
Tobych (talk | contribs)
Line 15:
A module here refers to a subroutine of any kind, i.e. a set of one or more statements having a name and preferably its own set of variable names.
 
;{{anchor|Content coupling}}Content coupling (high): Content coupling is said to occur when one module uses the code of otheranother module, for instance a branch. This violates information hiding – a basic design concept.
;{{anchor|Common coupling}}Common coupling: Common coupling is said to occur when several modules have access to the same global data. But it can lead to uncontrolled error propagation and unforeseen side-effects when changes are made.
;{{anchor|External coupling}}External coupling: External coupling occurs when two modules share an externally imposed data format, communication protocol, or device interface. This is basically related to the communication to external tools and devices.