~/talk

I Wrote an App Using Architecture Components… And Here’s How It Turned Out

Talkat Chicago Roboto 2018 · on Friday, 2018-04-13· [android]
speakerdeck:physphil
slides:none on file

A reminders app is built from scratch using ViewModels (MVVM), Room, LiveData and some RxJava; it persists data with Room and delivers UI updates via LiveData so Room auto-updates LiveData and ViewModel survives rotations while the dev uses SingleLiveEvent not in library for one-shot UI events. ViewModel tests run as fast JVM tests; Room requires emulator/device tests and manual threading. Overall the architecture yields a maintainable, testable app with a few onboarding gotchas.

AI-written summary · about

  1. 0:00Intro
  2. 1:00Architecture Components
  3. 5:44App Setup
  4. 8:04Live Data
  5. 11:20Mutable Live Data
  6. 12:53Single Live Event
  7. 15:00Testability
  8. 17:15Should You Use Live Data
  9. 17:49View Models
  10. 21:18Testing View Models
  11. 23:18Should You Use View Models
  12. 23:51Room
  13. 27:09Repository
  14. 27:29Testing
  15. 30:32Should You Use Room
  16. 31:31Room with Java
  17. 35:06Recap
~/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.