the same question for DI :slightly_smiling_face: g...
# ktor
e
the same question for DI 🙂 guice is a mature java project, but it uses guava as dependency and does not have fancy kotlin dsl
c
What DSL would you like to have for DI?
m
Guice works fine in Kotlin 🤷
m
My team is using Guice (with kotlin-guice for some very modest syntax sugar). It's been working alright for us so far.
IMO just
new
-ing stuff up would also work pretty well for a small/medium service
e
@cy like spring bean dsl or koin. just wondering what people use
g
Dagger for bigger project, manual constructor injection + simple self written service locator for smaller ones
d
There's also #kodein: http://kodein.org/Kodein-DI/
k
kodein is a service locator pattern (a variant of DI)...most of the pure Kotlin libraries are, otherwise they need reflection