https://kotlinlang.org logo
Title
f

Fré Dumazy

11/28/2017, 8:08 AM
I'm looking at some dependency injection frameworks for my next project. at the moment i would prefer Koin over Dagger because of its simplicity. Any thoughts on that, pitfalls I have to be careful with, other frameworks I should have a look at, etc?
g

Greg Stepniewski

11/28/2017, 8:14 AM
Depending on how big the project will be, you might want to check out Kodein. It’s a lot quicker and easier to use than Dagger, and it’s made specifically for Kotlin (in Kotlin).
f

Fré Dumazy

11/28/2017, 8:16 AM
I'll have a look. Thanks!
b

bringoff

11/28/2017, 10:10 AM
Toothpick to the rescue
👍 1
f

Fré Dumazy

11/28/2017, 10:22 AM
Did somebody already publish their research on Dagger vs Koin vs Kodein vs Toothpick vs ... ? 😅 It's hard to figure out the main differences. Looks like I'll be busy this weekend 😛
m

Michael Richardson

11/28/2017, 1:45 PM
Dagger evaluates at compile time rather than using reflection and is more established so getting support from the community could be easier.
v

Vincent Carrier

11/28/2017, 4:19 PM
Seconding Kodein. Like ToothPick, but with all the Kotlin sugar we love. I don’t think Koin is nearly as mature right now.
p

Paul Woitaschek

11/28/2017, 5:31 PM
@Michael Richardson what uses reflection?
m

Michael Richardson

11/28/2017, 5:47 PM
As I understand it, Kodein and Koin use reflection.
r

rkeazor

11/29/2017, 1:35 AM
Dagger 2