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, Ever struggled with code duplication? It can creep into your projects in ways you’d never expect. 🚨 In this week’s video, I’ll show you some tricky examples of duplicated code that might not be obvious at first glance. 👀 I also explain why simply following the DRY principle can sometimes make things worse. I’ll walk you through a refactor of one such case and even show you an example where not removing duplication is the better choice! Watch until the end of the video for some BONUS...

Hi there, Want to write cleaner and more efficient Python code? I’ve got you covered! In this week’s video, I walk you through 15 Python libraries that will seriously boost your productivity. From cutting project setup time in half with Cookiecutter 🍪 to converting text numbers to digits with Numerizer, these tools are all about making your life easier. You’ll learn how to automate tasks like file monitoring using Watchdog and build modern dashboards with Nicegui! Watch the full video to find...

Hi there, Python 3.13 is officially here, packed with some seriously exciting upgrades! 🐍 The headline feature? Disabling the GIL (yep, you read that right) is a game changer for multithreaded applications. Plus, the interactive interpreter now has full color support 🎨, making debugging and experimentation even more intuitive. But that’s just the tip of the iceberg. In this week’s video, I’ll walk you through all the major updates, including: A boost to garbage collection for faster memory...