in reply to (Software Engr) Encapsulate! No,no,no! Decouple!
Anyway, encapsulation lets us hide the nasty little details inside our modules (or classes, or whatever other mechanisms for encapsulation we have available). By not exposing the nasty little details (like, for instance, object data or internal methods), nothing outside can depend on them. So the coupling between your module and users of that module can be reduced.
The two principles aren't really at odds with each other.
|
|---|