The bridge pattern

There can be situations where multiple modules of an application are being built together and changed frequently. Due to high dependency, the probability of breaking the code is prominent.

To understand this pattern, we first need to understand the problem. Assume that a web development company wants to build and launch a new web framework. To speed up the development cycle, they decide to create two teams: the Core framework and User experience (UX) team. As the name suggests the Core framework team will be responsible for designing and implementing the core of the framework and the UX team will be responsible for the user interface. Initially, it was decided that the framework will support two types of websites: Blog and

Get Apex Design Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.