~/talk

Backbone.js, Jasmine and Rails: The Lust Story

Talkat LA RubyConf 2013 · 2013-02-21..02-23· [javascript, ruby, testing]
links:none on file
slides:none on file

A Rails app called Blog Mate moves its front end to backbone and adds jasmine tests, cutting a lot of custom JS and duplicated save/update/destroy code. The concrete win is using the events module so multiple views auto-update without wiring views into models, and switching to backbone models resolves REST syncing and removes manual id/callback bugs that only showed outside development. Tests use jasmine fixtures and stubbed server calls. Result: tighter organization, fewer lines, and working end-to-end single-page behavior.

AI-written summary · about

  1. 0:00Introduction
  2. 3:56Blog Mate project
  3. 7:05JavaScript challenges
  4. 9:11Custom patterns limits
  5. 13:52Backbone.js solution
  6. 16:42Backbone views
  7. 17:47Backbone models and Rails
  8. 21:20Backbone events
  9. 22:45Backbone collections
  10. 24:30Testing with Jasmine
  11. 25:54Backbone routes
  12. 26:35Why Backbone matters
  13. 27:37Benefits and future
~/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.