profile

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.

Featured Post

How to Write Clean AI Agent Code | Issue #70

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

Hey there, We all want to grow: as developers, as professionals, as people. But there’s one habit that can keep you from reaching your full potential. I’ve struggled with it my whole career, and I’ve seen countless other developers fall into the same trap: making assumptions and never questioning them. Early in my startup days, I dismissed React because I thought it wasn’t worth my time. I was wrong. More recently, I almost ignored AI coding tools for the same reason. These moments taught me...

Hey there, Writing software tests doesn't have to be hard. In my latest video, I walk you through how to write unit tests in Python with pytest Here’s what you’ll learn: The basics of unit testing (and why they matter) The difference between mocking and monkey patching, and when to use each How to refactor code for better testability How to use pytest fixtures to avoid repetition Advanced pytest features like parametrize, raises, skip, and xfail You’ll see multiple approaches in action, from...

Hey there, I've been using uv for all my Python projects lately. If you haven't made the switch yet from poetry, or pip/virtualenv/setuptools, this is a great time to try the tool. In my latest video, I walk through the latest updates to uv, including a hands-on demo of how uv now handles project setup, dependency management, syncing, and more, all from one tool. Uv now includes a fully integrated build backend, and as of version 0.8.0, it’s the default. That means no more extra config, and...

Hey there, As you've probably discovered Python’s ecosystem is massive. Knowing which libraries to use will help you get your work done much faster. A couple of weeks ago, I asked you in a YouTube community post which libraries you're using that more people should know about. So in this week's video, I go over 14 modern Python libraries you probably haven’t used yet, but absolutely should. I cover tools for: Functional programming Modern pagination in APIs Slick console output and TUIs...

Hey everyone, There’s one design pattern that regularly shows up in Python code, for example in libraries like Pandas or Matplotlib. But most developers don’t even realize they’re using it. I’m talking about the Builder Pattern. This week’s video is all about this pattern. I cover: Why the Builder Pattern is so useful for building complex objects (like config files, HTML pages, or queries) When to use it and when not to A real Python example: building a small UI using a builder pattern How to...

Hey everyone, With AI agents and micro-SaaS tools popping up everywhere, it’s easy to think we’ll soon replace all traditional SaaS platforms by just vibe-coding our own. But that's an oversimplification. In my latest video, I break down: ✅ Why many SaaS platforms won’t disappear anytime soon ✅ Where AI-powered development is already transforming the landscape ✅ Which SaaS products are truly at risk, and which are stronger than ever Happy coding! Cheers, Arjan Do you enjoy my content on...

Hey everyone, I love it when I come up with a design that uses exactly the things I thought were a sign of bad design. In this week's video I show you how to build a clean Python SDK for a REST API. The idea was simple: create a reusable base model that handles all the CRUD operations so you can just write User.find() and user.save(), without duplicating logic all over your codebase. Sounds great, right? Well, after recording the video, I realized something: not all APIs will have all CRUD...