~/talk

Where did the OO go? Views Should be Objects Too!

Talkat RailsConf 2014 · 2014-04-22..04-25· [frontend-architecture, javascript]
slides:none on file

Claim: render one set of templates on server and client by splitting view into a plain-data Perspectives gem object and a mustache templates file. Prototype RailsGenius demo loads snippets without full-page reloads, serves HTML for crawlers, and sends JSON for incremental updates. Comparison names Rendr/node and Turbolinks and shows tradeoffs. Specific wins: enforces separation of view logic into testable objects, enables structured JSON transport, and produces predictable cache keys so nested fragments expire correctly. RailsGenius demo validates the approach.

AI-written summary · about

  1. 0:00Start
  2. 2:23The Holy Grail of the web
  3. 14:59Lowest common denominator
  4. 19:04Mustache - "tags"
  5. 21:35Perspective
  6. 26:43Separation of concerns
  7. 27:19#2: Testing
  8. 28:13#3: Caching
~/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.