~/talk

Your Front End Framework is Overkill - Server Side Javascript w/ Rails

Talkat RailsConf 2015 · 2015-04-21..04-23· [ruby-on-rails, javascript]
slides:none on file

Claim: server side JavaScript with Rails replaces heavy front end frameworks for many dynamic interactions. Implements three parallel apps — vanilla Rails JS responses, AngularJS, Ember.js — and shows a TodoMVC and a users table where create.js.erb appends rows via create.js.erb using escape_javascript and the view partial, triggered by forms with remote: true and handled by jQuery UJS. Eval of responses hides errors so attach ajax:error or wrap in try catch, rebind events after DOM replacement, and leverage view helpers and caching for reuse and speed.

AI-written summary · about

  1. 0:00Introduction
  2. 2:40Overview
  3. 4:24Qualified
  4. 4:57Ruby JavaScript
  5. 5:17Rails Core
  6. 6:24Freeform JavaScript
  7. 12:26Createjstrb
  8. 16:21ToDo List
  9. 17:59Form
  10. 18:20Model
  11. 19:52Synchronous Submissions
  12. 20:42Controller Action
  13. 20:52Rendering
  14. 21:22Jquery
  15. 22:18ToDo
  16. 22:36AdToDo
  17. 23:12Sleep
  18. 24:02clientside advantages
  19. 24:57graceful error retry
  20. 25:21debugging
  21. 26:47asynchronous request states
  22. 27:16eval error
  23. 29:29Replacing HTML elements
  24. 30:12Jazz responses
  25. 31:09Cache responses
  26. 31:25Execution flow
  27. 31:53When did they make sense
  28. 32:37Final note
~/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.