GRASP (object-oriented design): Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
Indirection: Fix pattern name
Line 51:
 
===Indirection===
The indirection pattern supports low coupling and reuses potential between two elements by assigning the responsibility of mediation between them to an intermediate object. An example of this is the introduction of a controller component for mediation between data (model) and its representation (view) in the model-view control-controller pattern. This ensures that coupling between them remains low.
 
Problem: Where to assign responsibility, to avoid direct coupling between two (or more) things? How to de-couple objects so that low coupling is supported and reuse potential remains higher? <br>