~/talk

Inject Basics!

Talkat droidCon Berlin 2019 · 2019-07-01..07-03· [android, software-architecture]
links:none on file
slides:none on file

Shows how to do dependency injection with raw Kotlin and a small Android app (dog photos, later cats) handling networking, storage and threading without a framework, then compares Dagger and Koin. Claims constructor injection for testable classes, notes activities need special handling, and warns Dagger generates code, forbids cycles and gives compile-time safety while forcing injected fields mutable. Notes Koin uses a module/bean registry, is easy to write and test but is runtime‑checked — Koin = service locator, Dagger = code generation with compile‑time safety.

AI-written summary · about

  1. 0:00Introduction
  2. 1:29Dependency injection basics
  3. 8:08Service locator vs constructor injection
  4. 11:13Dagger framework overview
  5. 18:59Dagger Android introduction
  6. 27:00Pure inversion of control
  7. 29:04Koin dependency injection
  8. 35:23Do you need DI frameworks?
  9. 38:53Q&A
~/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.