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, If you’ve ever used Python decorators, you know they look like a clean way to add functionality. But have you ever struggled to debug a decorated function? Or wondered why your type hints suddenly break? Or spent way too much time figuring out why your decorators aren’t working as expected? 🫠 🚨 Decorators introduce hidden complexity that can turn your code into a nightmare. And honestly? I think they’re overused. In this week’s video, I explain: Why decorators break type safety and...

Hi there, Ever looked at your old code and felt secondhand embarrassment? Yeah, me too. Keeping your code simple and maintainable is an art. In today’s video, I break down 10 essential tips that will help you write cleaner, more efficient Python code. 🚀 Some key takeaways: 🛑 Stop overengineering—simple solutions are often the best. ✂️ Cut the copy-paste habit—DRY code is maintainable code. 🧹 Refactor before your code turns into a horror movie. Happy coding! 🐍 Cheers, Arjan # News How Do...

Hi there, Have you ever hesitated before hitting git merge or git rebase because… well, who actually understands Git? 🤯 Good news! In this week’s video, I walk through a real-world FastAPI project and show exactly how to merge, fast-forward, and rebase—step by step. No fluff, just practical Git skills you’ll actually use. Plus, I’m sharing some advanced Git tricks to make your workflow smoother. Happy coding and enjoy the video! Cheers, Arjan # News Build TUI Apps with Python’s Textual Ever...