💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide.
This video covers how the bridge pattern works and why it's useful. To spice things up, I'm going to deviate from the classic definition of the pattern from the Gang-of-four book (which is already quite powerful) and show you a couple of things you can do in Python to shorten the code and at the same time allow for extra flexibility.
The code that I worked on in this video is available here: https://github.com/ArjanCodes/2022-bridge.
🎓 ArjanCodes Courses: https://www.arjancodes.com/courses/
🔖 Chapters:
0:00 Intro
0:35 Why the Bridge pattern?
1:51 How the Bridge pattern works
3:21 Bridge pattern example
6:41 Bridge pattern with a functional part
10:49 Bridge pattern using ABCs with a list of dependencies
16:45 Final thoughts
#arjancodes #softwaredesign #python