- Lucas' Newsletter
- Posts
- Daily Dispatch #6 - Dependency Injection KodeIN-DI
Daily Dispatch #6 - Dependency Injection KodeIN-DI
![](https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/df851371-7b75-4cdf-aa46-7cc19e8a68a4/pexels-photo-239548.jpeg?t=1722263371)
So I went on to learn more about dependency injection by trying to change an example project that used Koin to use KodeIN-DI now.
Some problems were found, where I didn’t know what the equivalent to “get()”(from koin) to Kodein.
Eventually I found out it was “instance()”. And the way to declare things seemed simple enough.
Let’s see some examples where I’ll put the koin and kodein code side by side.
It isn’t much, but I had loads of errors building the project that are unrelated to di. Maybe tomorrow I’ll have more luck.