I Designed a Python SDK That Relies on… Deep Inheritance?!
Автор: ArjanCodes
Загружено: 2025-07-11
Просмотров: 17016
Описание:
Check out https://www.squarespace.com/arjancodes to save 10% off your first purchase of a website or domain using code ARJANCODES.
Ever wondered how to build a clean Python SDK without a giant god class? In this video, I’ll show you how I designed an SDK that uses multiple layers of inheritance to keep your code DRY and easy to scale.
👷 Review code better and faster with my 3-Factor Framework: https://arjan.codes/diagnosis.
🔥 GitHub Repository: https://git.arjan.codes/2025/sdk.
🎓 ArjanCodes Courses: https://www.arjancodes.com/courses.
💬 Join my Discord server: https://discord.arjan.codes
🔖 Chapters:
0:00 Intro
0:33 Our Test API
2:30 Building the SDK
4:46 What NOT to Do – Avoid the God Class
6:18 Squarespace Sponsored Section
8:05 Option 1 – Pass the Client (Dependency Injection)
11:33 Option 2 – Global Client (Singleton-style Import)
14:12 Design Issues
15:23 The BaseAPIModel
18:15 The User Model Becomes Simple
18:55 Using the Model
20:40 Pros and Cons of This Pattern
21:37 Want to Go Further?
22:32 Final Thoughts
#arjancodes #softwaredesign #python
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: