Code Quality Design Help

Coupling

Coupling is the degree of interdependence between modules or the strength of the relationship between modules.

“Software modules should aim for loose coupling.”

This is a foundational design principle.

Classes that follow the Open-Closed Principle (OCP) and the Dependency Inversion Principle (DIP) tend to be loosely coupled.

Coupling levels diagram: tight coupling vs loose coupling between modules

See Also:

20 August 2025