From Boring Object-Oriented to INSANE Functional Code | Issue #13


Hi there,

Ever wondered whether you should go functional or stick with object-oriented programming? Today I’ll dive into the pros and cons of both and show you how to blend them for the best of both worlds! 🔥

In this week’s video, I refactor some tricky code with surprising results, exploring the eternal debate of functional versus object-oriented programming. I’ll show you a fun word puzzle generator powered by Python and AI and explain why it’s called a “Philippine” puzzle—it involves almonds, believe it or not! 🥜

Learn how moving methods out of classes can simplify your code, discover the power of function composition and closures, and learn to avoid the dreaded “God class” for cleaner design. 🤓

Enjoy the video and happy coding!

Cheers,

Arjan

# News

Python Metaclasses

This week’s blog dives into the world of metaclasses in Python! 🐍 Learn how metaclasses act as blueprints for defining classes, enabling the customization of class behavior, enforcing coding standards, and more.

Explore practical examples and discover built-in metaclasses like type, ABCMeta, and EnumMeta from Python’s standard library. 🛠️

The article will help you understand when and why to use this powerful feature in your projects, including specific use cases and scenarios where metaclasses can significantly enhance your code. 💡 Click here to read the full blog.

Why Facebook doesn’t use Git

Greg Foster recently published an interesting blog post on why Facebook chose Mercurial over Git for its version control system. 🖥️

He dives into Facebook’s need for better performance and extensibility and how Mercurial’s architecture and community support led to this pivotal decision.

If you are a tech enthusiast interested in the history and evolution of source control tools, click here to read the full post.

# Community

Having trouble scaling your FastAPI service?

Recently, a member of our Discord community asked for help to boost the performance of their FastAPI service. This sparked an engaging discussion with valuable insights and practical advice from several of our community members.

Join our Discord server to read the full thread on optimizing FastAPI for handling concurrent requests, improving performance with async routes, offloading heavy tasks, and more. 🌟


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, 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...