~/talk

Blow Up Your Views

Talkat LoneStarRuby Conf 2011 · 2011-08-11..08-13· [ruby, frontend-architecture]
slides:none on file

Claims that Rails view templates are broken by instance variables and coupling and that replacing helpers with object decorators reduces complexity and coupling, demonstrated by a working gem Draper and adoption notes from Hashrocket and Podio. Shows a surprising internal view context of 51,000 characters and an observed ~8,000 objects per request, advocates using decent_exposure to expose methods instead of ivars and client rendering with handlebars to push formatting to the browser and shrink server work.

AI-written summary · about

  1. 0:00The state of views
  2. 2:35Data coupling issues
  3. 5:15Responsibilities of MVC
  4. 7:28Using decent exposure
  5. 10:48The problem with helpers
  6. 15:42Introduction to decorators
  7. 20:11The Draper gem
  8. 20:46Views as API customers
  9. 22:37Client-side rendering
  10. 25:28Automatic flushing
  11. 28:19Summary and Q&A
  12. 32:41Live code demonstration
~/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.