Principles and Architecture / Design patterns / Behavioral
Mediator
Original notes by SunDiaL · View English source
The Problem: You have too many interconnected components. It should not be the responsibility of a class to know which other class it should call.
The Solution: Extract the "who to call" knowledge in a dedicated class.