~/talk

Be Predictable, Not Correct.

Talkat MountainWest JavaScript 2014 · on Friday, 2014-03-21· [frontend-architecture]
name:Pete Hunt
github:petehunt
slides:none on file

Argues that predictability beats chasing correctness by using referential transparency and immutability to make UIs reliable, and that react's virtual DOM proves the idea: it treats user code as a black box, diffs render output, and works in production at Facebook/Instagram. Contrasts with KVO/Ember and Angular dirty‑checking, shows a 10,000‑item worst case where Ember is sub‑millisecond, naive virtual DOM ≈40ms, and an optimized hinted virtual DOM drops to 7 milliseconds, trading CPU for much lower memory.

AI-written summary · about

  1. 0:00Start
  2. 3:39How do we make Uls more reliable?
  3. 4:34Data binding is a polyfill for reactive JavaScript/DOM
  4. 5:12Contemporary data binding isn't simple.
  5. 7:03Simple !== familiar
  6. 7:24Key-Value Observation
  7. 7:41Observables & Computed Properties
  8. 18:53Stateful DOM!
  9. 22:46Data binding systems are not statically analyzable.
  10. 24:26Render code is usually cheap.
  11. 24:57Your view is usually smaller than your model.
  12. 28:19Worst case scenarios
  13. 29:34with virtual DOM?
  14. 31:46The secret of the virtual DOM
  15. 32:56Performance is not the main goal of virtual DOM!
~/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.