Benefits and drawbacks

I don't consider the Adapter pattern a long-term solution to architecture issues; even though it offers some benefits, its long-term drawbacks should always be taken into consideration.

The following are the benefits:

  • Adapting without modifying: The main benefit of the Adapter pattern is that it offers a standard approach to adapting code without modifying it.
  • Reusability and flexibility: This pattern permits continuing to use legacy code with new systems with a minimal amount of changes; this has an immediate return on investment.

The following are the drawbacks:

  • Persisting legacy: The ability to use legacy code with new systems is cost-effective, but in the long term, it can become an issue, because the old code ...

Get Hands-On Game Development Patterns with Unity 2019 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.