~/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 uses Rails + Backbone models + CoffeeScript and Smarty templates; implementing Backbone cuts custom save/update/destroy code, moves JSON REST behavior into models and collections, and adds comparator sorting and event-driven updates so multiple views stay consistent. Jasmine gets introduced as the JS test runner with Jasmine fixtures and stubbed server calls to avoid flaky specs. The claim: far less duplicate JavaScript, clearer organization, and a better-tested front end that actually works.

AI-written summary · about

  1. 0:00Introduction
  2. 1:16Personal Story
  3. 4:13About me
  4. 4:36Preface
  5. 5:17Rails and Jasmine
  6. 8:59Modular JavaScript
  7. 9:30View Handling
  8. 10:22Saving the Model
  9. 11:01Rendering a Template
  10. 11:26Multiple Views
  11. 12:07Sample View
  12. 13:03Update View
  13. 14:09Backbone View
  14. 15:42List View
  15. 16:24Base View
  16. 17:07Views
  17. 17:45Models
  18. 18:24Backbone Models
  19. 21:02Backbone Events
  20. 22:04Backbone Collections
  21. 22:35Pluck
  22. 23:34Comparator
  23. 24:22Jasmine
  24. 24:50fixtures
  25. 25:35Routes
  26. 26:22Conclusion
  27. 27:05Backbone Views
~/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.