Adapter: Benefits and Caveats
Explore the benefits and drawbacks of the Adapter design pattern in this lesson. Understand how it helps integrate incompatible services without changing application logic and why it may increase code complexity. Learn when it’s best to use Adapter, particularly with third-party or widely used APIs that cannot be changed.
We'll cover the following...
We'll cover the following...
Benefits of using the Adapter design pattern
The Adapter design pattern has the following benefits:
- It allows us to make our application work with incompatible services without changing overall application logic.
- Any translation between an incompatible API