~/talk

Framework-Free Dependency Injection

Talkat 360|AnDev 2019 · 2019-07-18..07-19· [android]
links:none on file
slides:none on file

Claims manual DI replaces heavy frameworks like Dagger for most unit-testing needs and ships a concrete recipe: define an interface, inject via constructor, provide a production implementation and pass a fake in tests. Examples: a Kotlin humanTimeHelper and a credit‑card presenter/viewmodel that moves SharedPreferences behind a LastCardStorage. Result: repeatable, JVM‑only unit tests, no build or runtime penalty, at the cost of extra constructor boilerplate and more interfaces to manage.

AI-written summary · about

  1. 0:00Introduction
  2. 1:50Android unit testing trends
  3. 7:08Unit testing example
  4. 14:49Android MVP example
  5. 15:27Network conditions
  6. 21:51Real Implementation
  7. 22:57Test
  8. 24:15Android
  9. 25:01View Models
  10. 26:09ViewModel
  11. 27:59Strengths
  12. 32:24Criticisms
  13. 36:39Not Dry
~/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.