Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Interesting! Author of kotlin-inject here, I had originally looked at writing a compiler plugin and using IR but the lack of documentation and a non-stable api scared me away. Cool that you were able to get it to work.
Looks neat. I'm a maintainer on Uber's Motif and we've been eyeing KSP or compiler plugin support in a future version.
Long answer: My pain mostly comes from using [Kodein](https://github.com/Kodein-Framework/Kodein-DI/) and a custom service locator in an iOS/Swift project. Other than that I have very little experience with DI (e.g. I never used Dagger so far), so my opinion might be a little biased. Also, both of these projects are really large, so, in many cases, a class is declared in one module but used in a completely different module and the DI or service locator is sort of the glue between the modules.
Related posts
-
Kodein VS MocKMP - a user suggested alternative
2 projects | 9 Nov 2022
- Kotlin Multiplatform and Swift - Overcoming Interoperability Challenges for Multiplatform Development
- [Typescript] Quelqu'un peut-il suggérer une bibliothèque d'injection de dépendance simple pour TypeScript / JavaScript?
- Best Practices When Splitting Compose Functions Into Separate Files
- KVision 6.0.0 is released