encyclopegia.org

Coupling (computer programming)

In software engineering, coupling is the degree of interdependence between software modules, a measure of how closely connected two routines or modules are, and the strength of the relationships between modules. Coupling is not binary but multi-dimensional. Coupling is usually contrasted with cohesion. Low coupling often correlates with high cohesion, and vice versa. Low coupling is often thought to be a sign of a well-structured computer system and a good design, and when combined with high cohesion, supports the general goals of high readability and maintainability.

In software engineering, coupling is the degree of interdependence between software modules, a measure of how closely connected two routines or modules are, and the strength of the relationships between modules. Coupling is not binary but multi-dimensional. ]] Coupling is usually contrasted with cohesion. Low coupling often correlates with high cohesion, and vice versa. Low coupling is often thought to be a sign of a well-structured computer system and a good design, and when combined with high cohesion, supports the general goals of high readability and maintainability. ==History== The software quality metrics of coupling and cohesion were invented by Larry Constantine in the late 1960s as part of a structured design, based on characteristics of “good” programming practices that reduced maintenance and modification costs. Structured design, including cohesion and coupling, were published in the article Stevens, Myers & Constantine (1974) and the book Yourdon & Constantine (1979), and the latter subsequently became standard terms. \mathrm{Coupling}(C) = 1 - \frac{1}{d_{i} + 2\times c_{i} + d_{o} + 2\times c_{o} + g_{d} + 2\times g_{c} + w + r} Coupling(C) makes the value larger the more coupled the module is. This number ranges from approximately 0.67 (low coupling) to 1.0 (highly coupled) For example, if a module has only a single input and output data parameter C = 1 - \frac{1}{1+0+1+0+0+0+1+0} = 1 - \frac{1}{3} = 0.67 If a module has 5 input and output data parameters, an equal number of control parameters, and accesses 10 items of global data, with a fan-in of 3 and a fan-out of 4, C = 1 - \frac{1}{5 + 2\times 5 + 5 + 2\times 5 + 10 + 0 + 3 + 4} = 0.98 ==See also== Connascence (computer science) Coupling (physics) Dead code elimination Dependency hell Efferent coupling Inversion of control List of object-oriented programming terms Loose coupling Make (software) Static code analysis

References

No reference rows published for this article.

Cite this article

MLA

"Coupling (computer programming)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/coupling-computer-programming. Accessed 24 November 2026.

Chicago

"Coupling (computer programming)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/coupling-computer-programming.

APA

encyclopegia.org. (2026). Coupling (computer programming). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/coupling-computer-programming

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
publication date1974Wikipedia

Related articles

James Caleb Jackson

enwiki · references available

Western Krai

enwiki · references available

Chinese Singaporeans

enwiki · references available

Tribune of the plebs

enwiki · references available

Ellen Wilkinson

enwiki · references available

Antiope (mother of Amphion)

enwiki · references available

Texas A&M University–Corpus Christi

enwiki · references available

Readjuster Party

enwiki · references available

Rakvere

enwiki · references available

Casiopea

enwiki · references available

Rovereto

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1367462368 · 0.5 · snapshot enwiki-001367462368

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.