This Is NOT Dependency Injection

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Good to see that you noticed that. Many people think that DI is Dagger, but DI could be also by constructor/field etc. Congrats 90k!

therebeliant
Автор

Dagger is just a tool to make DI easier...but since we pass parameters to a constructor we're already doing DI :)

corrector
Автор

Without lying the most accurate "dependency injection in a nutshell" thing ive heard so far.
Thanks and keep going ;)

trixisdis
Автор

Yeah using pure dependency injection is good practice. Dagger and hilt just provide dependencies to objects. But it's good to having good knowledge with pure di so using dagger or hilt will be very easy

weaponx
Автор

I love your video, I almost see you one week on my screen. haha

yisun
Автор

Thx, cleat explanation by a handsome software dev. ❤

estelisarva
Автор

yeah, I use constructor injection on flutter since there's no dagger2 equivalent on dart. It was boring tho 😅.

akaneritsuki
Автор

Can you please list all the topics available in Android for freshers.

jagans
Автор

So what is the actual benefit of using dagger?

wiiznokes
Автор

In this case, Service Locator pattern can be used

zs
Автор

Do they have dependcy injection in JavaScript? I really don't understand it or kotlin in general. . I am getting used to simple JavaScript so I can create simple react native projects. Kotlin alludes me.

fensom
Автор

DI is a design pattern. Dagger, Spring, and Unity use this pattern to implement inversion of control

rommelsuarez
Автор

Toothpick is better than Hilt or Dagger

vladioan