Video of the report “All the salt of single-page applications” with 404fest
Fedya Shumov and Arseniy Zarechnev, front-end developers from the Ostrovka team , talked about the
“All salt of one-page applications” at 404fest in Samara.
Report Content:
Single-Page Apps. All the salt.
Extranet.Ostrovok.ru (administration system for hotels). The most salty.
The presentation of the report can be found here: Arseny Zarechnev and Fedor Shumov - One-Page Applications
“All salt of one-page applications” at 404fest in Samara.
Report Content:
Single-Page Apps. All the salt.
- Backbone.js
- MVC on the client
- JS Testing
- Model-View Bindings
- Lighting Batman.js
Extranet.Ostrovok.ru (administration system for hotels). The most salty.
- Navigation and management through the address bar. Loosely connected router events. Caching payloads from the requested URL.
- DOM related data. Expando Do not clog the namespace with temporary or other people's data. Using third-party libraries using this technology.
- The view is built 1 time. When leaving for another page, it is torn out through Parent.removeChild (Child) or jQuery.detach () and lives with binders. When re-accessed, it is inserted assembled.
- Refusal of Delegate. The increase in speed due to the lack of event listeners on the parent view element.
- Knockout Clear logic of the template. Auto change UI. Changes in the DOM of only those attributes and elements that really require it. Secure interface. Multiuser mode.
- Backbone + Knockout = Router + CRUD + MVVM. Two-way dependency: methods for changing the model of each framework synchronize related objects and trigger the necessary events from each other. Gradual transition from Backbone to Knockout views.
- Pages that work with really large collections and models may require deep optimization. For example, abandon $ .extend or _.extend, which actively use models and collections of frameworks during initialization, to break the bundle in memory.
The presentation of the report can be found here: Arseny Zarechnev and Fedor Shumov - One-Page Applications