~/talk

Refactoring Plaid App – A reactive MVP approach

Talkat droidcon Berlin 2016 · 2016-06-15..06-17· [android, frontend-architecture]
speakerdeck:sockeqwe
slides:none on file

Refactors Plaid (5,000+ stars) into a reactive MVP with concrete changes: introduce a Source DAO, Router and Page classes, replace shared‑prefs with a SQL-backed store, and make queries observable so UI updates propagate automatically. Uses RxJava for streams, SQLBrite over SQLite for reactive queries, Retrofit for network, and OkHttp MockWebServer plus Espresso/JUnit rules for reproducible tests. Result is unidirectional data flow, fewer UI state bugs, and full test coverage enabling safer iterative changes.

AI-written summary · about

  1. 0:00Refactoring Plaid app intro
  2. 1:34Bad code slows development
  3. 2:15Test-driven development safety
  4. 2:35SOLID principles
  5. 4:00Immutability benefits
  6. 5:04AutoValue for Java classes
  7. 6:32MVC modern flaws
  8. 7:58Plaid app architecture
  9. 10:10Code and UI smells
  10. 11:34Plaid's tangled architecture
  11. 14:21Mocking network responses
  12. 16:08Mock server setup
  13. 17:31Clean architecture explained
  14. 18:56Breaking clean architecture
  15. 20:00Refactoring SourceManager with TDD
  16. 21:47RxJava basics
  17. 22:30SourceDAO with SQLBrite
  18. 23:17TDD workflow in practice
  19. 24:20Circular dependencies in adapters
  20. 25:44Event bus pitfalls
  21. 26:26MVP pattern and testing
  22. 27:09Refactoring DataManager
  23. 28:13Unidirectional data flow
  24. 30:43Services and intent updates
  25. 31:24Refactoring cost vs value
  26. 32:04Move fast safely
  27. 32:49Refactor summary
  28. 33:09Q&A
~/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.