~/talk

Dependency Injection from Zero to Hero

Talkat droidcon London 2019 · 2019-10-24..10-25· [android]
slides:none on file

Koin is a lightweight runtime DI for Kotlin that uses a tiny DSL to declare singletons and factories and boots with startKoin with modules so Android apps get constructor injection, Activity/Fragment extensions and ViewModel support without no code generation. Version 2.0 rewrites internals to approach Dagger’s startup speed, benchmarks show reflection-based auto-wiring is 4–10× slower than the explicit DSL, runtime module load/unload and checkModules JUnit tests let teams migrate from Dagger incrementally and test the graph.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 7:30Pure Kotlin dependency example
  3. 10:39What is Koin and its DSL
  4. 15:38Koin components and Android context
  5. 20:10Migrating from Dagger to Koin
  6. 23:01Android extensions and ViewModel
  7. 29:03Testing with Koin
  8. 31:10Koin 2.0 improvements
  9. 33:17Service locator vs dependency injection
  10. 35:03Functional dependency injection
  11. 38:56Dynamic modular architecture
  12. 41:43Tips and getting started
  13. 43:05Q&A and conclusion
~/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.