Beyond the DOM: Sane Structure for JS Apps
summary
Argues that apps must stop being DOM-centric and shows a small search app built with Backbone, RequireJS and tests in Mocha. Architecture: search view only announces events, a controller routes them to collections, collections fetch server data and views update on collection events. Demo on GitHub and running on NoJitsu. Claims this structure yields tiny, five-line tests, easier timestamp deduplication for recent searches, and far cleaner, more testable code.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 2:19The role of jQuery
- 4:45Limits of jQuery
- 7:31Client-side MVC
- 11:53Modularizing with RequireJS
- 14:41Application architecture
- 17:30Implementing with Backbone
- 25:43Testing and conclusion
related talks
54mTaking JavaScript Seriously with Backbone.js
44mModern JavaScript: Moving Beyond jQuery
51mBuilding Amazing Single Page Applications the Right Way
29mThe Front-end Takeover
40mClient Side MVC and The Gosh Darn Back Button
29mStructure Your App's Story With Sagas and Selectors
30mReact: Rethinking best practices
29mBackbone.js, Jasmine and Rails: The Lust Story
