Avoid Bad Practices in Python OOP 🚫

Learn 7 steps to design better Python software by avoiding common bad OOP practices. Watch the video for tips!

Avoid Bad Practices in Python OOP 🚫
ArjanCodes
133.2K views • Sep 6, 2024
Avoid Bad Practices in Python OOP 🚫

About this video

💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide.

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.

🎓 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
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

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

133.2K

Likes

4.3K

Duration

24:42

Published

Sep 6, 2024

User Reviews

4.7
(26)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.

Trending Now