When to (Not) Use Dunder Methods?

In this video, I’ll discuss dunder methods, when to use them, and when to avoid them. Dunder methods are also called magic methods because they allow you to basically change everything that Python does under the hood. 🪄 But if you’re not careful with them, they can lead to confusing code. 👷 Join the FREE Code Diagnosis Workshop to help you review code more effectively using my 3-Factor Diagnosis Framework: 💻 ArjanCodes Blog: 🐱💻 Git repository: ✍🏻 Take a quiz on this topic: 🎓 Courses: The Software Designer Mindset: The Software Architect Mindset: Pre-register now! Next Level Python: Become a Python Expert: The 30-Day Design Challenge: 🛒 GEAR & RECOMMENDED BOOKS: 👍 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! Social channels: 💬 Discord: 🐦Twitter: 🌍LinkedIn: 🕵Facebook: 📱Instagram: ♪ Tiktok: @arjancodes 👀 Code reviewers: - Yoriz - Ryan Laursen - Dale Hagglund 🎥 Video edited by Mark Bacskai: 🔖 Chapters: 0:00 Intro 0:37 The Python data model 2:55 When to override dunder methods 8:40 When to not override dunder methods 19:10 Final thoughts #arjancodes #softwaredesign #python 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!
Back to Top