Bridge pattern is a structural design pattern that decouples an abstraction from its implementation, allowing them to vary independently. It's like how Facebook separated its user interface from the backend systems, so they could make changes to the UI without breaking everything else.
I was trying to explain the Bridge pattern to the new dev on our team, but he kept getting distracted by the latest JavaScript framework and wouldn't listen.
When the PM asked why we were behind schedule, I told her it was because we spent all week arguing about whether to use the Bridge pattern or not, while the real problem was that nobody could agree on what toppings to get on the pizza.
Bridge Pattern: Refactoring Guru provides a clear explanation of the Bridge pattern, complete with code examples and snazzy diagrams.
Bridge Design Pattern: Source Making dives into the details of the Bridge pattern, including its structure, examples, and comparisons to other patterns.
Bridge Pattern in Java: Baeldung offers a Java-specific look at the Bridge pattern, with real-world code samples and explanations of when to use it (spoiler alert: not as often as you might think).
Note: the Developer Dictionary is in Beta. Please direct feedback to skye@statsig.com.