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.
If you’ve ever opened a function and instantly regretted it… this week’s video is for you. I’m talking about those legendary functions: ten levels of indentation, contradictory conditions, duplicate branches, mysterious try/except blocks, and business logic so unclear that nobody knows what it actually does anymore. I start with a really messy example and walk through the exact process I use to refactor it safely. You’ll see how to create characterization tests so you don’t break existing...
Have you ever written a Python script that felt slow, even though the logic was simple? Sometimes it’s not the efficiency of your code that's the problem, it’s when your code does its work. This week’s video is all about the Lazy Loading design pattern, and I think many developers underestimate how powerful (and practical) it is. I start with a real example: loading a huge CSV file that freezes your program for 10 seconds before doing anything useful. Then, step by step, we improve it using:...
If your code is hard to test, hard to reuse, and hard to change, you’re probably hardcoding your dependencies. It’s one of the most common architectural problems I see in Python code, even in production systems. In this week's video, I take a small but realistic example, a data pipeline that loads, transforms, and exports some records, and show you how Dependency Injection can turn it from a rigid mess into something clean, testable, and modular. No frameworks required. You’ll learn: Why...