Avoid These 7 Common OOPSies in Python

Описание к видео Avoid These 7 Common OOPSies in Python

In this video, I’ll uncover common bad OOP Python practices and show you how to keep your code clean and maintainable. Learn why you should replace unnecessary classes with functions, use modules instead of classes with only static methods, and flatten deep inheritance hierarchies.

🔥 GitHub Repository: https://git.arjan.codes/2024/badoo

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

📨 The Friday Loop by ArjanCodes Newsletter: https://thefridayloop.com

💻 ArjanCodes Blog: https://www.arjancodes.com/blog

✍🏻 Take a quiz on this topic: https://www.learntail.com/quiz/pzzjpu

🎓 Courses:
The Software Designer Mindset: https://www.arjancodes.com/courses/tsdm
The Software Architect Mindset: https://www.arjancodes.com/courses/tsam
Next Level Python: Become a Python Expert: https://www.arjancodes.com/courses/nlp
The 30-Day Design Challenge: https://www.arjancodes.com/courses/30ddc

👍 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: https://discord.arjan.codes
🐦 X: https://x.com/arjancodes
🌍 LinkedIn:   / arjancodes  
🕵 Facebook:   / arjancodes  
📱 Instagram:   / arjancodes  
♪ Tiktok:   / arjancodes  

👀 Code reviewers:
- Yoriz
- Ryan Laursen
- Dale Hagglund
- Kit Hygh
- Alexander Milden
- Bean

🎥 Video edited by Mark Bacskai:   / bacskaimark  

🛒 GEAR & RECOMMENDED BOOKS: https://kit.co/arjancodes

🔖 Chapters:
0:00 Intro
0:11 #1 A Function Masquerading as a Class
1:53 #2 A Module Masquerading as a Class
4:37 #3 Complex Inheritance structures
7:51 #4 Not Relying on Abstractions
11:27 #5 Ignoring Encapsulation
15:34 #6 Excessive Use of Getters and Setters
17:40 #7 Heavily Relying on Mixins
22:50 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!

Комментарии

Информация по комментариям в разработке