Incremental DOM with Backbone Marionette (on Rails)

1 · Phat Pham · Feb. 8, 2018, 1:27 a.m.
Summary
At 500px, the majority of our client-side code is written using Backbone and Marionette, with handlebars templates. Although it has served us well so far, we’re always on the lookout for ways to improve our stack, architecture and best practices.As a rule, we avoid directly manipulating the DOM as much as possible, preferring to update state on our view component and re-render. This makes our code a lot easier to maintain, reason about, and debug. It does, however, have some downsides; it can re...