tubeshowcaseโ—1,126,073 videosโ™ก My collection 0
โ† Learn to Code

Learn to Code21:10

This Is Why Your Python Code Turns Into Spaghetti

ArjanCodes โ†—

From the creator

๐Ÿ’ก Learn how to design great software in 7 steps: https://arjan.codes/designguide. Why do Python projects turn into spaghetti so easily? In this video, I show how using abstraction (with Callable, ABC, and Protocol) can dramatically clean up your code. Weโ€™ll take a simple image processing example and refactor it step by step, making it more flexible, testable, and maintainable. Even small projects benefit from the right abstractions early on. ๐Ÿ”ฅ GitHub Repository: https://git.arjan.codes/2025/abstraction. ๐ŸŽ“ 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:54 Why Abstraction Matters 2:44 Reducing Import Overload with Abstraction 4:25 Using ABC โ€“ When You Need a Real Interface 11:43 Protocol โ€“ Structural Typing Without Inheritance 14:00 Using Callable โ€“ Functional Abstraction 19:56 Final Thoughts #arjancodes #softwaredesign #python

Published 2025-07-04 ยท Watch on YouTube โ†—
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code