Your Front End Framework is Overkill - Server Side Javascript w/ Rails
summary
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
chapters (28)
- 0:00Introduction
- 2:40Overview
- 4:24Qualified
- 4:57Ruby JavaScript
- 5:17Rails Core
- 6:24Freeform JavaScript
- 12:26Createjstrb
- 16:21ToDo List
- 17:59Form
- 18:20Model
- 19:52Synchronous Submissions
- 20:42Controller Action
- 20:52Rendering
- 21:22Jquery
- 22:18ToDo
- 22:36AdToDo
- 23:12Sleep
- 24:02clientside advantages
- 24:57graceful error retry
- 25:21debugging
- 26:47asynchronous request states
- 27:16eval error
- 29:29Replacing HTML elements
- 30:12Jazz responses
- 31:09Cache responses
- 31:25Execution flow
- 31:53When did they make sense
- 32:37Final note








