FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
ArticleTools

Stop Hardcoding Everything: Use Dependency Injection

via ArjanCodesArjanCodes4mo ago

→ 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 Depen

Watch on ArjanCodes

Opens in a new tab

Watch on YouTube
19 views

Related Articles

Kids and young people: stay curious and be willing to engage with others
Article

Kids and young people: stay curious and be willing to engage with others

freeCodeCamp.org • 1d ago

I really miss coding.
Article

I really miss coding.

Theo • 1d ago

Here's a cool and easy way to work with colors in your Three.js projects
Article

Here's a cool and easy way to work with colors in your Three.js projects

freeCodeCamp.org • 2d ago

Learn a bit about camera position in Three.js
Article

Learn a bit about camera position in Three.js

freeCodeCamp.org • 5d ago

A great novel can be written in any language - just like great programs.
Article

A great novel can be written in any language - just like great programs.

freeCodeCamp.org • 6d ago

Discover More Articles