~/talk

Bring Fun Back to JS: Step-by-Step Refactoring Toward Ember

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

The talk shows a concrete refactor path: wrap messy jQuery in an initLegacyCode jail, write integration tests, extract computed-property models, and replace UI bits with Ember Components so the DOM becomes a read-only view of state. It uses Ember Data and ic-ajax to stub APIs, drives out delete and favorite features, and demonstrates the refactor works end-to-end with tests and a live demo that adds favorites in minutes.

AI-written summary · about

  1. 0:00Start
  2. 13:33Rap it
  3. 14:15The Component
  4. 14:34The Template
  5. 14:44The Sprinkling
  6. 15:07First test
  7. 16:43AJAX tests
  8. 17:53Identi Models
  9. 18:09Unit tests!
  10. 18:35Extract to model
  11. 19:11Add Handlebars
  12. 19:58Identify States
  13. 21:08Change states
  14. 21:34What's left?
  15. 23:002nd Component
  16. 23:132nd Test Set
  17. 23:252nd Template
  18. 24:21CSS Animation
~/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.