"Change is the only constant," as they say, and today we'll show you how the Adapter pattern ships change with less pain and more speed. Here's the argument:
- Complexity is the distance between the data structures you have, and the data structures you want.
- Fat models and a pile of helpers are not a reusable structure.
- Adapters give you purpose-built structures with abstraction and specificity.
Here's the point: you want modular, reusable tools that can be added, modified and removed with minimal disruption to the rest of the codebase. This is the thing that makes your life easier, and this is the thing that adapters give you. This article will explain how.