Loading...
  Previous Lesson Complete and Continue  

Python Design Patterns In-depth Disscussions

Session 1: Principles of Software Design
  • Retry Pattern: The Secret to Resilient Python Code (24:01)
  • The Lazy Loading Pattern: How to Make Python Programs Feel Instant (19:38)
  • Stop Hardcoding Everything: Use Dependency Injection (00:00)
  • Stop Overwriting State And Use Event Sourcing Instead (25:11)
  • You’re Passing Way Too Many Arguments (and How to Fix It) (19:44)
Session 2: Behavioral Patterns
  • I Hate Long If-Elif Chains: This Design Pattern Solved It Once and For All (15:23)
  • SOLID: Writing Better Python Without Overengineering (21:55)
  • The Real Reason the Singleton Pattern Exists (15:30)
  • Avoid Messy Code: Design Patterns for AI Agents in Python (18:18)
  • The Builder Pattern in Python: Finally Explained! (14:18)
  • Let's Take The Adapter Design Pattern To The Next Level (22:44)
  • Let's Take The Bridge Pattern To The Next Level (17:12)
Session 3: Structural Patterns
  • How To Make The Command Pattern More Flexible With One Simple Change (17:42)
  • Real-Life Case of the Command Design Pattern (32:24)
  • How to Implement the Strategy Design Pattern in Python (27:19)
  • The Factory Design Pattern is Obsolete in Python (23:17)
  • Solving A Common Issue With The Strategy Pattern // In Python (14:42)
  • The Factory Pattern in Python // Separate Creation From Use (14:57)
Session 4: Creational Patterns & Refactoring
  • QUESTIONABLE Object Creation Patterns in Python (15:09)
  • Two UNDERRATED Design Patterns (17:25)
  • Observer Pattern Tutorial: I NEVER Knew Events Were THIS Powerful (15:16)
  • The Strategy Pattern (15:30)

Retry Pattern: The Secret to Resilient Python Code

This video shows you how to stop your Python code from crashing when APIs, networks, or LLMs fail at random. I walk through the Retry Pattern step-by-step: starting with a flaky example, adding simple retries, improving them with exponential backoff, turning the logic into a clean decorator, and finally adding fallback routes when retrying the same thing no longer makes sense. You’ll also see how retries help when working with LLMs that sometimes return invalid JSON. By the end, you’ll know exactly when to retry, when not to, and how to make your applications far more resilient.

Membership Required

To access

You need membership or higher.

Unlock Membership Now