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
In questa pagina del sito puoi guardare il video online Can Dependency Injection Elevate Your Python Code? della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Chuck Conway 25 febbraio 2025, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 62 volte e gli è piaciuto 4 spettatori. Buona visione!