Two UNDERRATED Design Patterns 💡 Write BETTER PYTHON CODE Part 6

ArjanCodes
ArjanCodes
69.3 هزار بار بازدید - 3 سال پیش - In this video, I talk
In this video, I talk about two underrated design patterns in Python: the template method pattern and the bridge design pattern. They're both really useful and when used in combination, they complement each other really well.

All parts in this series:
Part 1: Cohesion and coupling - Cohesion and Coupling: Write BETTER P...
Part 2: Dependency inversion - Dependency Inversion: Write BETTER PY...
Part 3: The strategy pattern - The Strategy Pattern: Write BETTER PY...
Part 4: The observer pattern - Observer Pattern Tutorial: I NEVER Kn...
Part 5: Unit testing and code coverage - 100% CODE COVERAGE - Think You're Don...
Part 6: Template method and bridge - Two UNDERRATED Design Patterns 💡 Writ...
Part 7: Exception handling - Exception Handling Tips in Python ⚠ W...
Part 7b: Monadic error handling - Monadic Error Handling in Python ⚠ Wr...
Part 8: Software architecture - Why You Should Think About SOFTWARE A...
Part 9: SOLID principles - Uncle Bob’s SOLID Principles Made Eas...
Part 10: Object creation patterns - QUESTIONABLE Object Creation Patterns...

💡Here's my FREE 7-step guide to help you consistently design great software: https://arjancodes.com/designguide.

Relevant books:
- Design Patterns: Elements of Reusable Object-Oriented Software by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides: https://amzn.to/3jllgyH
- Principles of Package Design: Creating Reusable Software Components by Matthias Noback: https://amzn.to/2NETK3l
- Clean Code: A Handbook of Agile Software Craftsmanship by Robert Martin: https://amzn.to/3qVZgNs
- The original Design Principles and Design Patterns article by Robert Martin: https://fi.ort.edu.uy/innovaportal/fi...

My gear:
📷 Sony A7C - https://amzn.to/3aShCtw
🎙 Rode Wireless GO - https://amzn.to/3pSLFVU
💡 GVM RGB LED light - https://amzn.to/3qRNJid
💡 GVM 100W light with lantern softbox - https://amzn.to/2NuU8lk

You can find the code I worked on in this episode in my GitHub repository: https://github.com/arjancodes/betterp...

🔖 Chapters:
0:00 Intro
0:33 Analysis of the example
3:20 Template method explanation
5:03 Implementing the template method
9:09 Bridge pattern explanation
10:56 Implementing the bridge pattern
15:59 Final thoughts

👍 If you enjoyed this content, give this video a like. If you want to watch more of my upcoming videos, consider subscribing to my channel!

DISCLAIMER - The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!

#python #programming #designpatterns
3 سال پیش در تاریخ 1399/12/22 منتشر شده است.
69,379 بـار بازدید شده
... بیشتر