~/talk

A (K)night with Dagger - Slicing problems of newbies

links:none on file
slides:none on file

Rebuilds a RandomUser Android app with Dagger 2 and shows concrete code: creates ApplicationComponent and MainActivityComponent, modules for Picasso, HTTP/file cache, Context and RandomUserService, and uses @Module/@Provides, @Component, @Scope and @Named/qualifier to resolve application vs activity context. Demonstrates field and constructor injection, component builder generation, and subcomponent/dependency wiring; explains Dagger1’s reflection cost versus Dagger2’s annotation processors and compile-time generation, and notes Gradle/stacktrace pain points that are resolvable.

AI-written summary · about

  1. 0:00Introduction to Dagger
  2. 2:31Dependency injection basics
  3. 5:12Reflection and Dagger 1 vs 2
  4. 7:18Dagger 2 and annotation processors
  5. 8:02Modes of dependency injection
  6. 9:23Converting app to Dagger 2
  7. 12:13Refactoring for testability
  8. 14:04Dependency graph creation
  9. 15:09Modules and components
  10. 17:44Handling external dependencies
  11. 20:39Connecting modules to components
  12. 21:28Component builders and instances
  13. 22:53Scopes in Dagger
  14. 24:17Singleton scope implementation
  15. 25:23Context differentiation
  16. 27:52Activity-level dependencies
  17. 28:57Subcomponents and scopes
  18. 30:47Changes in application and activity
  19. 32:14Field injection vs constructor injection
  20. 34:51Constructor injection demo
  21. 35:57Dagger ease and challenges
  22. 37:10Q&A on reflection and errors
~/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.