Keeping the Daggers Sharp ⚔️
Py ⚔
3.4K13

Nice one Piwai, especially the part “immutable and therefore thread safe” and “Kotlin removing the boiler plate”. In addition to this, I prefer constructor injection as it will be easier to perform Unit testing with mock. Apart from these benefits, constructor is the best place to have your objects, that is required by your class, to be injected and initialised. I seldom use static @provides but seems like I need to look to use more of this.