glossary:artificial_coupling
Table of Contents
Artificial Coupling
Meaning 1
Alternative Terms
Definition
An artificial coupling is a coupling which is only there for technical reasons.
Description
Examples
The following couplings are natural ones:
Librarydepending onBookStopwatchdepending onTimeOrderdepending onOrderItemOrderProxydepending onOrder- …
The following couplings are artificial:
Timedepending onStopwatch(time should be meaningful without a stopwatch)OrderItemdepending onOrder(an order item way at least be viewed separately from the order whereas an order without any items is not an order anymore)Orderdepending onDatabaseConnection(an order which is not persisted is normally still an order, the dependency is not necessary from a conceptual point of view)Orderdepending onOrderProxy- …
Alternative Definitions
See Also
Further Reading
Other Meanings
Discussion
Discuss this wiki article and the term on the corresponding talk page.
glossary/artificial_coupling.txt · Last modified: by christian
