Avoid These BAD Practices in Python OOP | Issue #17


Hi there,

Is your object-oriented Python code turning into a tangled mess? 🍝 Yes, this isn’t the kind of spaghetti you want to see on a Friday night.

In this week’s video, I’ll uncover common bad OOP practices and tips for keeping your code clean and maintainable.

Learn why simple functions can replace unnecessary classes and why using modules might be more effective than relying on classes with only static methods. 🚀

I’ll also discuss the pitfalls of deep inheritance hierarchies and the proper use of encapsulation without overusing getters and setters.

Enjoy the video and happy coding!

Cheers,

Arjan

# News

The Software Designer Mindset Update

This week I’ve relaunched The Software Designer Mindset course! 🌟

My team and I have reviewed the full curriculum and added:

  • Completely reworked videos, with a massive improvement in overall production quality.
  • More in-depth material covering Python’s data types and data structures as well as exploring common concepts such as abstract base classes, protocols, and mixins.
  • A brand-new module covering domain analysis and how to turn a problem in a domain into a working software solution (COMPLETE version only).
  • Many small fixes and improvements throughout the course.

To celebrate this massive revamp and the amazing additional value it will bring you, until September, 11th at midnight, you can still get The Software Designer Mindset at its current price (from $229). After that date, I’ll increase the price of the course to reflect the value this course brings and the additional time my team and I spent working on it.

Another BONUS: by popular demand, more subtitles are now available for all my courses, including the updated version of The Software Designer Mindset. 💃🏻🎉

So don’t wait and get the course at its current price while you can!

My First Experience as a Tech Lead

Lucas Matheus recently shared a post about his journey as a Tech Lead, emphasizing how crucial soft skills are alongside technical ones. He breaks down the subtle yet significant differences between junior and senior developers. 📖✨

Matheus highlights that being a senior developer is more than just coding—it’s about problem-solving, working independently, collaborating effectively, and mentoring others. Reflecting on his career, he shares invaluable insights from the diverse senior professionals he’s met along the way.

Click here to read the full post and learn from his experiences. 💡

# Community

Our community member, Wabiloo, is seeking assistance with implementing a mechanism to “wrap” objects with additional information while maintaining their original functionality. 🤔

Wabiloo’s current approach uses a StatedValue class that wraps objects and overrides relevant dunder methods. However, they’re facing difficulties in making type checks recognize both the wrapping class and the wrapped object, which is crucial for maintaining type safety.

Community members have shared their experiences and proposed various approaches to tackle this problem. If you’re interested in helping Wabiloo find a solution or want to explore different perspectives on this topic, check out the full discussion here. 💬


Do you enjoy my content on YouTube and would you like to dive in deeper? Check out my online courses below. They've helped thousands of developers take the next step in their careers.

🚀 The Mindset Online Course Series

The goal of this series is to help junior developers grow their skills to become senior developers faster.

💥 Other Courses

💡 If you’re part of a development team at a company, I offer special packages for companies that give your team the tools to consistently write high-quality code and dramatically increase your team's productivity.

🪄 Learntail

My team and I created an AI quiz generator designed to accelerate your learning, called Learntail. You can try it for free or unlock even more capabilities and features with the monthly subscription. Take a look here.

Unsubscribe | Send by ArjanCodes

Jan van Eijklaan 2-4, Bilthoven, UT 3723 BC

The Friday Loop

Every Friday, you'll get a recap of the most important and exciting Python and coding news. The Friday Loop also keeps everyone posted on new ArjanCodes courses and any limited offers coming up.

Read more from The Friday Loop

Hi there, This week’s video covers tips you probably haven’t considered—ones that can make or break your code and potentially save you hours of debugging. 🕵️♂️ Today I’m breaking down the art of designing function headers—because a good one makes your life 10x easier, while a bad one… well, you’ll wish you had known sooner. 👨💻 I’ll walk you through the essentials of function naming, and why using verbs in your function names can make all the difference.You’ll also learn how to streamline your...

Hi there, Ever wondered why Python sometimes behaves in unexpected ways? In this week’s video, I’ll be showing you 13 strange things in Python that might just blow your mind! 🤯 Especially the last one—it’s really confusing! From the mysteries of integer caching to the quirks of mutable default arguments, this video is packed with examples that will make you question everything you know about Python. 🐍 P.S. Stay tuned until the end of the video for an awesome Easter egg in Python you might not...

Hi there, What if I told you that sometimes the best way to handle errors in your code is to let them crash and burn? 💥 That’s right! Today, I’ll share my “Let it burn” approach to handling errors. In this week’s video, you'll learn why letting your code fail fast can lead to simpler, clearer, and more robust software. I’ll show you real-life examples from my invoicing automation project where embracing errors helped me improve efficiency and save time. 💡 Stay tuned until the end for some...