~/talk

Dagger Reflect - The circle from runtime to compile time and back to runtime

Talkat droidcon SF 2019 · 2019-11-18..11-19· [java, developer-experience]
slides:none on file

Dagger Reflect replaces Dagger’s heavy generated component with a reflection runtime that swaps a 10,000‑line generated component for ~20 lines so local compilation skips expensive annotation processing; a Gradle plugin uses dependency substitution to flip compile/runtime coordinates. Tradeoffs: app startup increases (example 3s → 7s), runtime validation is lazy, error messages are weaker, and some Dagger features aren’t implemented yet. Requires annotation retention set to RUNTIME and minor build changes; real-world usage shows about 19% faster builds for opting‑in developers.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:04History of dependency injection
  3. 2:53The evolution of Dagger
  4. 4:36Introducing Dagger Reflect
  5. 6:43How Dagger Reflect works under the hood
  6. 12:02Project structure and setup
  7. 18:10How to use Dagger Reflect
  8. 22:09Dagger Reflect Gradle plugin
  9. 24:57Current state and limitations
  10. 26:00Future of Dagger Reflect
  11. 27:29Usage at SoundCloud
  12. 28:53Build time improvements and adoption
  13. 31:23Real-world build performance
  14. 33:55Trade-offs and developer experience
  15. 34:17Acknowledgments and closing
~/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.