~/talk

Slaying a UI Antipattern

Talkat Oslo Elm Day 2019 · on Saturday, 2019-02-16· [frontend-architecture, developer-experience]
slides:none on file

Many sites show empty lists or zeroes while data is actually loading because they use a Boolean loading flag plus an empty collection. The fix is a four‑state model — NotAsked/Loading/Failure/Success — implemented as a RemoteData type in Elm, an HTTP adapter that maps responses into that type, and a reusable webDataView adapter that renders each state. Result: compile‑time guarantees that loading and error UIs are always handled, fewer UX glitches, and consistent, cheap-to-maintain HTTP handling.

AI-written summary · about

  1. 0:00The UI loading problem
  2. 2:55Analyzing the root cause
  3. 5:13Solving with types
  4. 9:24The reality of Ajax
  5. 14:37Implementation walkthrough
  6. 21:02Results and benefits
  7. 25:23The importance of data models
~/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.