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

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, You’ve probably noticed this by now: LLM prototypes are easy to build. But as soon as you try to turn them into actual production LLM systems… a lot more goes into it. In this week’s video, I walk through how to structure AI agents in Python using design patterns like Chain of Responsibility, Observer, and Strategy. I’ll build a fully functional travel assistant using Pydantic AI and explore how to make your agent pipelines more maintainable, testable, and modular. Hope you enjoy...

Hi there, I have to admit, I often forget how powerful the Python standard library is. Whenever I'm working on some project, I have to remind myself to consider whether something I need is already there, ready for me to use. So, in this week’s video, I’m looking at 10 of the most useful and underrated modules in Python’s standard library, including pathlib, heapq, graphlib, and more. These tools can help you write cleaner, faster, and more maintainable code without adding a single dependency....

Hi there, If you’ve been experimenting with trying to integrate AI into your code, you’ve probably run into the same problem I have: unstructured, unpredictable output. And the other way around: how do you let AI agents interact with your own code? That’s where Pydantic AI comes in. In this week's video, I show how to use Pydantic AI to embed an LLM agent directly into your Python app: with structured input, validated output, and access to real business logic. What I love about this approach...