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

Wolvenplein 25, Utrecht, UT 3512 CK

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 is all about uv workspaces, and why they’ve completely changed the way I manage Python projects. In the video, I walk you through a real-world example: I build a CLI tool and a FastAPI API that both fetch and summarize news headlines using OpenAI. But the real lesson is in how the project is structured. I show you how to share a local package between apps, define common dependencies like openai or httpx only once. And you can manage everything using uv’s workspace...

Hi there, When I see an if-statement with multiple elifs in my code, it almost always triggers an investigation. Is there some way to rewrite this to make the logic simpler? Is there a chance that in the future I'll need to add even more complexity? If so, I'll try to redesign the code so that I don't need that chain of if-elif statements. In this week’s video, I cover a design pattern that helped me eliminate many of those chains from a project + at the same time made the code easier to...

Hi there, I just published a new video about Python 3.14, and no, it’s not just about the version number lining up with π (though that does make me feel more complete). The new release brings a bunch of improvements, but I decided to focus on the features I personally love and that I actually use in my day-to-day work. Here’s what I cover in the video: A small but beautiful improvement to exception syntax (fewer parentheses!) Native Zstandard compression with way better performance than gzip...