~/talk

Common Poor Coding Patterns and How to Avoid Them

Talkat AndroidTO 2018 · on Tuesday, 2018-11-06· [android, frontend-architecture]
links:none on file
slides:none on file

A demo Android app using the Pinterest API shows common failures and concrete fixes: a base Fragment with protected state creates inheritance hell so code shifts to composition and custom Avatar views; global event queues like EventBus (Otto/TinyBus) cause hidden bugs around a follow button so the app replaces loose events with listener/LiveData or RxJava flows; per-fragment cached models become inconsistent and are solved by a central repository pattern with tests via MVP + Mockito + Robolectric.

AI-written summary · about

  1. 0:00Introduction
  2. 2:30Problem 1 UI
  3. 7:19Problem 2 Events
  4. 12:06Problem 3 Events
  5. 13:05Problem 3 Code
  6. 13:40Solution
  7. 17:02Unit Tests
  8. 23:54Recap
  9. 25:07Additional Resources
  10. 25:39Questions
~/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.