https://kotlinlang.org logo
#ktor
Title
# ktor
j

jw

03/19/2024, 12:01 AM
Is it just me or does the ktor blog post about DI from today actually feature zero DI? They seem to be using Koin as a global service locator with zero inversion of control.
🗡️ 1
😂 11
4
l

Luca

03/19/2024, 6:09 AM
what’s your multiplatform DI library of choice these days?
r

Robert Jaros

03/19/2024, 6:25 AM
Whatever DI library you use, someone smart will tell you it's not Dependency Injection 😛
💯 1
c

CLOVIS

03/19/2024, 10:49 AM
what’s your multiplatform DI library of choice these days?
Do you need one? DI is just a technique of passing dependencies instead of hardcoding them in the service. I don't need a library to add a
Clock
or
Job
as part of the constructor parameters.
❤️ 1
💯 1
a

Arjan van Wieringen

03/19/2024, 1:11 PM
DI only makes sense in some applications at a certain size. I love DI when used correctly
yes black 2
same 1
t

Todd

03/19/2024, 3:08 PM
I feel like the article didn't actually explain anything about what the api will look like or how it will be implemented but wanted to dispel the concern raised here. https://kotlinlang.slack.com/archives/C0A974TJ9/p1710456409723029 I appreciate them posting a statement about it, but I agree the examples provided were confusing.
🙏 1
4 Views