Principles and Architecture / Design patterns / Structural
Adapter
Original notes by SunDiaL · View English source
The problem: You have two incompatible systems that need to communicate. It should not be the responsibility of the class to translate between the systems.
The solution: Extract the translation in a dedicated class.