Dependency Injection Explained

preview_player
Показать описание
In this tutorial I am going to teach what dependency injection is, the benefits and why you as as developer should be using it in your codebase/projects.
Рекомендации по теме
Комментарии
Автор

Dependency injection is basically providing the objects that an object needs (its dependencies) instead of having it construct them itself. It's a very useful technique for testing, since it allows dependencies to be mocked or stubbed out.

DeGoya
Автор

THIS IS THE BEST TUTORIAL ON DEPENDENCY INJECTION ON YOUTUBE.... I have been trying to understand DI for a long time. Thank you.

chriszeng
Автор

thank god found an understandable tutor without accent

eyonky
Автор

It can't be better explained!!! Thank you!!!

Gorky
Автор

Dependency injection is mostly for changing environments. E.g. Development vs. production. The code will not have to be altered, and the resources will come from different services such as a database and if you are working in dev, you'll get the PostgreSQL service, and if your working in production you'll get the Oracle service.

codemonkeesyoutube
Автор

But the MailChimpEmailServce Class wasn't a @Service (it was a duplicate of the EmailService)? It was consuming the ContactListService and was injecting that into the constructor - was that a mistake as the EmailService did not have that annotation?

ginopacitti
Автор

Nelson you’re awesome 👏🏻 you explain everything miraculously. Thanks 🙏🏻

cheribgh
Автор

Best explanation I heard about the dependency injection. Bravo!

funcky-beta
Автор

Excellent explanation. Clear and simple. Thanks!

arielspalter
Автор

very insightful, not what I'm looking for in syntax but the explanation is all that I need

fredrickamoako
Автор

Thanks! you explain how and what does this injection is doing so clearly! Subscribed!

Alex-tilv
Автор

Great video. Thanks and don't worry your pronunciation of dependency injection is perfect!

carsonholzheimer
Автор

This explanation is awesome. Thank you!

stacypavlenko
Автор

I am learning Java now after Javascript. The video is super helpful. Thank you!

tarnum
Автор

Great video. Pretty straightforward. Thank you!

danielvazqueiroz
Автор

You explained this really well. Thank you.

K.E.N.J.I.B.A.B.Y
Автор

Dependency injection is basically creating an object that, if its a service (aka usually only performs methods with static variables that dont change), then use that same object over and over again rather than creating new ones

noveled_
Автор

clear like crystal could u make a tutorial about spring context ?? xml configuration, java configuration and dynamic configuration also how to debug xml configuration

SamElabd
Автор

Clear explanation. Thanks!
Qn: what's the diff b/w @Autowired & @Injet? When to use what?

VarunKumar-ymxb
Автор

the best video on youtube where we have a lot of shits about java from hindi

remek