Bridge Pattern - the fix for class hierarchies that explode into RedCircle, BlueCircle, RedSquare, BlueSquare. Split one tree into two and let them grow independently.
What’s in the video (5m 51s)
- 0:00 Bridge Pattern
- 0:48 Real World Example - Website Themes
- 2:06 What is Bridge Pattern?
- 3:34 How Bridge Pattern Works?
- 4:12 Final Takeaway of the Bridge Pattern
- 4:58 When to Use Bridge Pattern?
Resources
- Full Design Patterns series: YouTube playlist
- Previous episode: https://youtu.be/VAiH-JuKDBg
- Next episode: https://youtu.be/jOBDSLzi3S4
- Source notes / code: https://github.com/learnwithmanoj/design-patterns-simplified/blob/main/10-structural-bridge.md
For more in this series, visit the #design-patterns tag page or jump to the channel uploads list for everything else.