Keeping the Daggers Sharp ⚔️
Py ⚔
2.4K10

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.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.