Dagger 2 Android : Defeat the Dahaka

We have had many talks and blog posts on Dagger till now and people have done a great job at explaining it’s various concepts. Dagger is something which has become a part of our coding lives now. Yet, from time-to-time we still find ourselves lost while dealing with “The Dahaka (an infinite storm in an ocean of Providers, Factories, Builders, MemberInjectors, DoubleChecks, Lazy, Producers…)”.

Starting to learn about Dagger? Start by creating a Module and a Component. Add a Singleton scope to it.
Are dependencies getting out of hand? Create another dependent component.
Creating a dependent component? You should create another scope!!
Create a subcomponent.
Still alive? Now we present you with Dagger Android and I am sure that it will certainly kill you 😛

But wait! What exactly is the relation between a Module and a Component?

Thankfully! Dagger 2 generates all its code at compile time and we can actually see what’s going on behind the scenes.

In this talk, we will aim to Defeat “The Dahaka (a storm in the ocean of generated classes)”. After attending this talk you will get a better sense of what goes on behind the scenes and how to smartly move to Dagger Android 🙂

Development
Location: Main Stage Date: April 13, 2018 Time: 2:00 pm - 2:45 pm Garima Jain