DEPENDENCY INJECTION FINALLY EXPLAINED

Опубликовано: 16 Май 2026
на канале: Lethcode
506
15

Does the D in SOLID drive you nuts? Does nobody ever give you a clear idea of what dependency injection even means? Its all confusing right? No. In 2 minutes you will know exactly that it is all pretty simple. Almost too easy actually.

Normally when you construct objects in code you pass in what they need to the constructor. But wouldn't it be really nice if the computer just did it for you so you could go back to streaming Youtube? Well today you learn how.

If you use dependency injection the right way you will get easier to maintain code, less boiler plate and when you change something you won't have to change it in 15 places because the compiler is screaming at you.


Help me reach my subscriber goal like the last person who subscribe: 682845
283248

Support the Channel: buymeacoffee.com/lethcode
Business Inquires: [email protected]

Get 2 FREE Audio Books from Audible
https://amzn.to/2ZfViDn

My Favorite Books on Coding, Devops, and Leadership

The Phoenix Project https://amzn.to/3ahITFm
The Unicorn Project https://amzn.to/2NtIKFD
The Devops Handbook https://amzn.to/3jMG6al
The Infinite Game https://amzn.to/3b9AjHO
Start With Why https://amzn.to/3pf6jPS
Clean Code https://amzn.to/3b2dOEU
Code Complete https://amzn.to/2NtIYMZ

Gear Used
Blue Snowball iCE USB Mic https://amzn.to/2ZiPpVT
Intel Core i5-10600KF - 8GB Memory - NVIDIA GeForce GTX 1660 SUPER - 1TB HDD + 240GB SSD
https://amzn.to/2ZeZT91

Davinci Resolve - Editing
StreamLabs OBS - Screen Capture

**Disclaimer: Lethcode is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to www.amazon.com.