Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Stop Hardcoding Everything: Use Dependency Injection
Play lesson

Software Design in Python - Stop Hardcoding Everything: Use Dependency Injection

4.0 (1)
31 learners

What you'll learn

This course includes

  • 31.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

→ Check out Thesys here: https://www.thesys.dev/?utm_source=youtube&utm_medium=creators&utm_campaign=arjan In this video, I explore how Dependency Injection can make your Python code cleaner, more testable, and easier to extend, using a real-world data pipeline example. I start with a tightly coupled version and progressively refactor it using manual injection, a lightweight custom DI container, and even show how frameworks like FastAPI handle DI under the hood. Design pattern playlist: https://www.youtube.com/playlist?list=PLC0nd42SBTaNf0bVJVd9e2oBV-mcUuxS0 🔥 GitHub Repository: https://git.arjan.codes/2025/di. 🎓 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 0:57 The Problem: No DI 1:29 What Is Dependency Injection? 2:13 Refactoring with Manual DI 17:19 Going Further: A Simple DI Container 28:04 Dependency Injection in FastAPI 29:53 Use Cases for Dependency Injection 30:52 Final Thoughts #arjancodes #softwaredesign #python

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere