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.
Share
My FAVORITE Error Handling Technique| Issue #16
Published over 1 year ago • 3 min read
Hi there,
What if I told you that sometimes the best way to handle errors in your code is to let them crash and burn? 💥
That’s right! Today, I’ll share my “Let it burn” approach to handling errors.
In this week’s video, you'll learn why letting your code fail fast can lead to simpler, clearer, and more robust software. I’ll show you real-life examples from my invoicing automation project where embracing errors helped me improve efficiency and save time. 💡
Stay tuned until the end for some quick tips on handling errors smartly and effectively. 🚀
Enjoy the video and happy coding!
Cheers,
Arjan
# News
Learn How AI Works With Brilliant
In the past, I’ve talked about the mechanics and the challenges of large language models (LLMs), based on my experience building Learntail. 🤖
But if you’re eager to master these concepts and dive into many other topics, Brilliant, our sponsor for today, is the ideal platform for you!
Brilliant is an interactive learning platform specializing in math, data, and computer science. Unlike traditional courses, Brilliant emphasizes hands-on learning through engaging challenges that help you build a deep understanding from the ground up.
Their bite-sized lessons are perfect for daily learning, allowing you to build new skills in just minutes each day. 🧠✨
Join over 10 million learners worldwide and start your 30-day free trial today. Plus, as an exclusive offer for ArjanCodes viewers, get 20% off a premium annual subscription through The Friday Loop newsletter. Click here to dive in and discover how far a little daily learning can take you!
Something Is Coming… 👀
My team and I have been working hard behind the scenes on something really exciting over the past few months, and we have a little surprise for you all.
I’ll share everything with you next week so keep an eye on this newsletter and on my YouTube channel! 😉
Design Patterns in Modern Software Design
Design patterns are fundamental tools in software development, but are you using them wisely? 🧩
In this week’s blog, I’ll discuss when design patterns are the right tool for the job and when they might be adding unnecessary complexity. We’ll cut through the confusion and focus on how patterns can make your code cleaner, more maintainable, scalable, and flexible—without falling into the trap of over-engineering.
If you’ve ever wondered whether you’re naturally applying patterns to solve real problems or forcing them into your code unnecessarily, this post is for you. 🧠💻
# Community
Leo, one of our community members, is seeking guidance on developing an API similar to the OpenAI Assistant API using FastAPI and AWS. He’s facing challenges with planning the cloud architecture and making component decisions. 🤔
Several community members have already shared valuable tips and best practices on cloud architecture, authentication, rate limiting, and scalability to assist Leo. If you’re new to deployment and cloud services, these insights could be incredibly beneficial for you too.
Join our Discord server to read the full thread and gain valuable knowledge. If you have experience and advice to share, your input could make a big difference for Leo and others in the community! 🚀
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.
The Software Architect Mindset - Learn the mindset that will allow you to effortlessly build and maintain scalable software systems. Become a software architect.
The 30-Day Design Challenge - Get the practice you're missing. Learn to deal with a wide variety of software design problems.
💡 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.
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.
Code can be correct and still be unpleasant to read. A lot of software design isn’t about what the code does but about how clearly it communicates the sequence of ideas behind it. In this week’s video, I explore the Fluent Interface pattern by refactoring a small animation engine in Python. I start with a clunky but functional API, then gradually reshape it until defining an animation reads almost like a sentence: move, rotate, scale, fade. Enjoy this deep dive into API design, readability,...
Have you ever looked at a Python script and thought: “Why is this slow? The logic is trivial.” Very often, the problem isn’t what your code does, but how often it does expensive work. In this week’s video, I start with a deliberately inefficient example: parsing a large CSV file multiple times. From there, I use it as a vehicle to introduce 10 powerful Python features that many developers either don’t know about or don’t know when to apply. I look at things like: • caching expensive...
I almost didn’t publish this week’s video. It’s about the Specification design pattern, and if I’m honest, the final version of the code scared me a little. It’s complex, abstract, and in many cases… absolutely overengineered. But there’s a reason I still decided to share it. In the video, I explore how the Specification pattern tackles a very real problem: business rules duplicated across different parts of a system, slowly drifting apart and becoming harder to change safely. Is this...