~/talk

Advanced multi-platform dependency injection

Talkat droidcon Berlin 2021 · 2021-10-20..10-22· [kotlin, software-architecture]
slides:none on file

Shows how Kodein-DI runs across Kotlin/JVM, Kotlin/Native and Kotlin/JS and what actually works: provider, factory, singleton, multiton bindings with tags and bindConstant, modules plus test-friendly override behavior, and sub-DI copy strategies that change whether singletons are shared. Demonstrates scopes (weak context vs custom registries that must clear), scope closable, rememberInstance for Compose, and a Swift/SwiftUI retrieval prototype with a Gradle plugin proof‑of‑concept plus exploration of compiler‑plugin/KSP support for dependency interface generation.

AI-written summary · about

  1. 0:00Introduction and overview
  2. 1:08What is dependency injection
  3. 2:33Binding types in coding DI
  4. 6:07Injecting dependencies
  5. 9:46Organizing bindings with modules
  6. 11:13Overriding bindings for testing
  7. 12:38Extending DI containers
  8. 14:44Copy strategies for containers
  9. 15:27Common DI errors
  10. 17:32Understanding scopes
  11. 19:20Creating custom scopes
  12. 21:30Using scopes with bindings
  13. 22:59Context translation
  14. 24:03Scope closable resources
  15. 25:26DI with declarative UI
  16. 27:14Performance in Compose
  17. 28:17Android specific DI
  18. 30:20Swift UI support plans
  19. 33:11Future retrieval interfaces
  20. 36:27Closing and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.