4:00:00This Is Why Your Python Code Turns Into Spaghetti
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.





