I'm looking at some dependency injection framework...
# android
f
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
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
I'll have a look. Thanks!
b
Toothpick to the rescue
👍 1
f
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
Dagger evaluates at compile time rather than using reflection and is more established so getting support from the community could be easier.
v
Seconding Kodein. Like ToothPick, but with all the Kotlin sugar we love. I don’t think Koin is nearly as mature right now.
p
@Michael Richardson what uses reflection?
m
As I understand it, Kodein and Koin use reflection.
r
Dagger 2