Explore the concept of dependency injection (DI) and its applicability in Python. Learn what DI is, see code examples, and understand its benefits for testing and reducing code complexity. DI can be a powerful tool for flexible designs.
Dependency Injection Frameworks:
Injector (https://github.com/python-injector/in...)
Dependency Injector (https://python-dependency-injector.et...)
MY OTHER SOCIALS
Newsletter - https://chuckconway.com
Blog - https://chuckconway.substack.com
Twitter - https://x.com/chuckconway
LinkedIn - / chuckconway
Threads - https://www.threads.net/@chuckconwayjr
Instagram - / chuckconwayjr
Github - https://github.com/chuckconway
WHO AM I?
Hello, I'm Chuck.
I'm a full-stack developer, AI enthusiast, and content creator passionate about building beautiful software that helps humankind.
For nearly 30 years, I've developed my skills in Python, C#, Generative AI, .Net, software design, software architecture, and CI/CD. I believe in craftsmanship, thoughtful architecture, and efficient processes.
When I'm not coding, I enjoy life in Folsom, CA, with my wife Erin, our daughter, and our furry feline friend.
If you are curious about my work, I share my insights and lessons learned via my blog and YouTube.
Timestamps:
00:00 Introduction to Dependency Injection in Python
00:32 What is Dependency Injection?
00:53 Dependency Injection in Static Languages
01:45 Code Example: Traditional vs Dependency Injection
03:15 Flexibility with Dependency Injection
05:49 Testing with Dependency Injection
07:12 Dependency Injection in Python Projects
08:19 Conclusion and Recommendations
08:38 Like, Subscribe, and Share Your Thoughts
Nesta página do site você pode assistir ao vídeo on-line Can Dependency Injection Elevate Your Python Code? duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Chuck Conway 25 Fevereiro 2025, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 62 vezes e gostou 4 espectadores. Boa visualização!