I am wondering the purpose of Javascript MVC frameworks such as Backbone.js and Spine.js. As an avid/experienced Ruby on Rails developer, I never had a useful case where I needed another MVC layer for my application. It just seems rather silly to me. I heavily use unobtrusive Javascript for handling events and error handling logic but it doesn’t go as far as creating classes and views for my views.
Pardon my ignorance in this area but I would definitely like to get this answered from experienced developers.
JavaScript MVC frameworks like Backbone.js are for adding structure to your front-end.
This is most useful when building [increasingly popular] single-page JavaScript apps (SPJA). If you’re heavily using unobtrusive JavaScript, you’re probably doing a fair amount of ajax for dynamic content to avoid refreshing the page on the user. SPJA’s take this a step further by letting the user visit all areas of an app without ever refreshing the page. Without the structure provided by MVC frameworks, the client-side code can quickly get out of control.