glossary:natural_coupling
Table of Contents
Natural Coupling
Meaning 1
Alternative Terms
Definition
A natural coupling is a coupling between classes which represent concepts which are dependent in the same way.
Description
Examples
The following couplings are natural ones:
Library
depending onBook
Stopwatch
depending onTime
Order
depending onOrderItem
OrderProxy
depending onOrder
- …
The following couplings are artificial:
Time
depending onStopwatch
(time should be meaningful without a stopwatch)OrderItem
depending onOrder
(an order item way at least be viewed separately from the order whereas an order without any items is not an order anymore)Order
depending onDatabaseConnection
(an order which is not persisted is normally still an order, the dependency is not necessary from a conceptual point of view)Order
depending onOrderProxy
- …
Alternative Definitions
See Also
Further Reading
Other Meanings
Discussion
Discuss this wiki article and the term on the corresponding talk page.
glossary/natural_coupling.txt · Last modified: 2013-08-11 13:57 by christian