In this series, I talk about design patterns and principles and show you how you can use them to improve the quality of your code. All examples are in Python.
Curated by: ArjanCodes (99 videos)
🧱 Build software that lasts. Join the Software Design Mastery waiting list → https://arjan.codes/mastery. Nested loops are often treated as an algorithm problem. But most of the time, they’re a design problem. In this video, I break down a real example and show why nested loops usually appear: wrong data structures, misplaced behavior, and too many responsibilities in one place. Then we refactor the code step by step into something simpler and easier to understand. 🔥 GitHub Repository: https://git.arjan.codes/2026/nested. 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 1:09 Symptom 1: Wrong Data Structure (Implicit Join) 4:33 Symptom 2: Behavior in the Wrong Place 6:54 Symptom 3: Too Many Responsibilities 12:45 Other Reasons Nested Loops Appear 14:13 Final Thoughts #arjancodes #softwaredesign #python