~/talk

DIY Dependency Injection with Kotlin

Talkat DevFest Florida 2019 · on Saturday, 2019-01-19· [kotlin, developer-experience]

Claims a workable DIY dependency injection pattern in Kotlin that avoids annotation processing and code generation and keeps builds fast for an SDK used across apps (15 million users referenced). Implements nested graphs, constructor injection where possible, by lazy initialization, simple factory lambdas, Retrofit and an on-device WireMock server, coroutines and multi-module structure. Demonstrates a ShoppingApp sample, swaps live versus mock endpoints, achieves fast iteration and testing with ~80% coverage, and shows the approach actually runs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:11Why DIY DI
  3. 3:41SDK requirements
  4. 5:45Why use dependency injection in Android
  5. 8:09Inversion of control
  6. 10:38Existing DI libraries
  7. 12:41DIY DI in Kotlin
  8. 14:45Live demo: dependency swapping
  9. 16:34Dependency graphs
  10. 19:02Nested and lazy graphs
  11. 21:50Advanced DI features
  12. 22:53DI in Activities/Fragments
  13. 24:58Accessing dependency graph
  14. 26:21Pro tips for DIY DI
  15. 27:22Injecting presenters/repositories
  16. 28:03Key takeaways and closing remarks
~/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.