Protocol Or ABC In Python - When to Use Which One?
💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide. When should you use protocol classes vs abstract base classes? Here's an example where I use both, talk about the trade-offs, and give you a suggestion of when to use each of them. The code I worked on in this video is available here: https://github.com/ArjanCodes/2021-pr.... 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 2:01 Explaining the example 5:56 About abstract base classes 8:47 Protocols, nominal typing and structural typing 10:41 Using protocols 15:34 Splitting the Device class 20:05 When to use protocols vs abstract base classes #arjancodes #softwaredesign #python

Purge These 7 Code Smells From Your Python Code

Protocols vs ABCs in Python - When to Use Which One?

Composition Is Better Than Inheritance in Python

Uncle Bob’s SOLID Principles Made Easy 🍀 - In Python!

Protocols in Python: Why You Need Them - presented by Rogier van der Geer

5 Tips For Object-Oriented Programming Done Well - In Python

Why Your Code Isn’t Pythonic (And How to Fix It)

Stop Writing Classes Like This in Python

Python Decorators: The Complete Guide

Don’t Use Boolean Flags in Python, Use Policies Instead

Why AI Agents are either the best or worst thing we’ve ever built

7 Python Mistakes That Instantly Expose Junior Developers

Doku: Die geheime Welt des deutschen Adels

Why the Plugin Architecture Gives You CRAZY Flexibility

Naming Things in Code

Windows is a trainwreck

The State Pattern in Python (Real Examples)

Microsoft's Greed is Finally Backfiring

Python's 5 Worst Features

