|
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.
Hi there, You’ve probably heard it before: "Singletons are an anti-pattern!" And… yes. They often are. Especially when they’re used to add global state to your app and create coupling and bugs. But... there’s a different side of the Singleton pattern. In this week’s video, I cover why Singletons get a bad reputation. I'll also show you a practical use case where Singleton might actually be helpful. Enjoy the video, and hope you have a great weekend. Cheers, Arjan Do you enjoy my content on...
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....