A brief description of what dependency injection is. This is not an actual example of how to use dagger. This is purely conceptual. ➤ Watch the dagger course free: ↻ codingwithmitc...
I have a very strange problem when i use dependency injection when i have Recyclerview in app, most of the times items will be duplicate or getting 3x item, or list won't be updated, and when i develop without DI, it's working fine, i've tried notifychange or etc, but still problem remain...Can u please use recyclerview in pro ways, since u're experienced?Thanks again.
Dagger 2 is for Dependency Injection and Dagger Android (which is part of Dagger 2 its more like add on) is to reduce that boilerplate code in Fragments, Activities, or any other Android framework classes that are instantiated by the OS
It would be more understandble if when you explain "@Singleton" you show the java code it replaces, most java developers are familiar with singletons I suppose, that annotation isn't more than a replacement for writing the static getInstance()... by yourself.
Just started with this series, but Mitch, here's your engagement.
I am big fan of you and Florian. But I am bit more towards Florian side since he is better in explaining concepts in deep :) specially dagger part
@singleton one instance of object in memory for entire application.
exemple glide instance, retrovit, instance httpOk, things that never change!
retrofit :))
I have a very strange problem when i use dependency injection when i have Recyclerview in app, most of the times items will be duplicate or getting 3x item, or list won't be updated, and when i develop without DI, it's working fine, i've tried notifychange or etc, but still problem remain...Can u please use recyclerview in pro ways, since u're experienced?Thanks again.
I will use a recyclerview, but I'm not injecting anything into it
Hello, can u please do this with multiple activities and subcomponents?
yep I will be covering that
Amazing, how about retrofit? or injecting and using libraries (for examples : glide & picaso)?
@@educationey9572 yep that too
my question what is dagger2 please and what are used for ? thanks just a curious dude
Dagger 2 is for Dependency Injection and Dagger Android (which is part of Dagger 2 its more like add on) is to reduce that boilerplate code in Fragments, Activities, or any other Android framework classes that are instantiated by the OS
It would be more understandble if when you explain "@Singleton" you show the java code it replaces, most java developers are familiar with singletons I suppose, that annotation isn't more than a replacement for writing the static getInstance()... by yourself.
I m just taking not here : dagger2 help us to architect our code.
A very important subject, but it is a pity that I can not understand what you say, and translator of subtitles is very bad (
What about dependency injection with Koin?
Koin is fine. If you like it use it
still waiting for your short video on uploading image to server with retrofit. Dont mind if you add it to your paid class.
That's not a short video lol. Id need to do a lot of stuff server-side before making a "short video".
I'll include it in the next course
@@codingwithmitch the next course will be when?