~/talk

Model-View-Websockets

Talkat HTML5.tx Texas 2013 · on Saturday, 2013-02-02· [web-platform, frontend-architecture]
slides:none on file

Argues that combining MV patterns with an event-driven layer and WebSockets replaces many AJAX flows: shows concrete stacks (Twitter/Flight, Airbnb using Backbone server+client, Meteor), demos a global pub/sub that pipes DOM events and socket messages into a shared server-driven application control flow, and uses socket.open/onmessage/emit semantics and socket.io + backbone.duo* for syncing. Claims desktop browsers support WebSockets, mobile is spotty, batching and local caching prevent noisy updates, and implementation is simple and proven.

AI-written summary · about

  1. 0:00Start
  2. 1:06ah, JavaScript
  3. 3:13win some/lose some
  4. 4:03implementation issues
  5. 5:02some approaches
  6. 7:32Model-View
  7. 9:46Event-Driven Architectures
  8. 10:40events and objects
  9. 11:06events themselves
  10. 11:47EDA in JavaScript
  11. 12:54dealing with data
  12. 13:48the views
  13. 14:48the action
  14. 17:58how we do it (now)
  15. 18:42framework choices
  16. 19:39a controller
  17. 22:02a viewmodel
  18. 24:16when it's tricky
  19. 26:24not your mama's comet bi-directional
  20. 27:06available now
  21. 27:38uses
  22. 29:28event piping
  23. 30:34EDA + WebSockets
  24. 32:01DIY WebSockets
  25. 34:14socket.io example
  26. 35:43connecting it
  27. 38:13sockets for control
  28. 39:31collection.js
~/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.