Dependency Injection for Beginners. I tried to mak...
# feed
s
Dependency Injection for Beginners. I tried to make it as easy as possible to read: https://www.seljabali.com/blog/introduction-to-dependency-injection-and-its-popular-android-frameworks
👏 1
h
Koin is developed by jetbrains? Where is that information from :D
s
Thanks for reading @Hanno. I suppose I was thinking of ktor, while writing about it. Thanks for pointing it out. I've updated it.
h
Ah i c, nice Response time! Other than that, nice article, always appreciated when First di and service locator without frameworks is explained :)
s
Awesome, thanks!
e
Since this is for beginners, I'd really reconsider encouraging the Service Locator anti-pattern instead of proper DI on the Koin section. It's possible to use it without Service Locator issues if you restrain
by inject
to the composition root. Also, a nitpick:
Copy code
public void start() {
 engine.start()
}
Should be:
Copy code
fun start() { 
  engine.start()
}
s
Thank you sir! Once I get around reading the article and updating accordingly, I'll report back to see if it looks alright to you.
😁 1