https://kotlinlang.org logo
#announcements
Title
# announcements
i

infini

08/09/2017, 9:30 AM
So... Dependency Injection and Kotlin. Right now it seems like there are quite a few "one man bands" out there trying to be the next big thing. Dagger seems almost like an elephant in a Window store, considering how elegant DI could be done in Kotlin. What would you use today, and in a near future?
d

denis.shakinov

08/09/2017, 9:32 AM
haven’t found any dagger replacement so far
r

raulraja

08/09/2017, 9:51 AM
Depends on what you want to achieve as method return types, but it can be done with just functions deferring execution to a single point.
s

sandwwraith

08/09/2017, 10:19 AM
I personally prefer Kodein (https://github.com/SalomonBrys/Kodein)
i

infini

08/09/2017, 11:05 AM
Ye, Kodein is my fav at the moment
e

eygraber

08/10/2017, 12:14 AM
I've been using Kodein in a production level app for a year now. Rock solid library. I find it to be a lot easier to grok and use than dagger. Check out #kodein
4 Views