~/talk

It,s complicated, but it doesn,t have to be: a Dagger journey

Talkat Android Makers 2019 · on Tuesday, 2019-04-23· [developer-experience]

Shows how to get Dagger’s compile‑time safety and top performance while cutting boilerplate by using constructor injection everywhere possible, preferring a component factory over modules or builders, and using assisted inject for runtime parameters. Demonstrates concrete tools: static @Provides, incremental annotation processing, a reflection dev fallback, and tiny extension functions that wire Dagger into Android ViewModel providers to get ViewModel‑scoped DI without subcomponents. Gives working patterns and tradeoffs so setup and build time actually improve.

AI-written summary · about

  1. 0:00Start
  2. 5:48Modularization
  3. 7:18Constructor injection FTW Go with construction injection for all classes you own
  4. 8:22@Singleton is expensive
  5. 12:59Avoid member injection Favor exposing dependencies in the components
  6. 15:36External classes
  7. 16:42Always go for static @Provide methods No one wants your module instance
  8. 20:41Use the new @Component.Factory And avoid the lame module with constructor arguments or the old component Builder
  9. 33:18Control scope with ViewModels Take advantage of what Android gives you for free
  10. 37:11Take advantage of Assistedinject Assisted injection is a thing in Dagger
~/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.