Developing Backbone.js Applications – a Creative Commons book
addyosmani.github.io
addyosmani.github.io
About a year ago, I was beginning a new (personal) project, and thought maybe I'd learn Angular... went through a few online tutorials, seemed fairly pleasant to work with. Then I ran across the news regarding Angular 2.0, that it would be more or less a completely new framework. Not sure if that's true or not, but there was enough confusion in the blogosphere around that time that I decided not to sink the time into learning a new framework whose creators had already declared obsolescent.
Backbone is the old reliable, I'll stick with it for the time being.
P.S. I don't consider myself a frontend/js developer -- I only ever do front-end work on my own personal projects, because there's nobody else to do it :)
With flux/react/angular around development is a lot more fun again. I can't imagine going back.
React + flux implementation du jour looks really promising, though.
Makes me wonder if there's some sort of objective comparison and analysis of frameworks, or if everything is based on anecdote and personal experiences.
Frameworks do give you a corset to work within. I do not claim backbone wasn't a success. Just providing that was big.
Since Ruby on Rails
MVC is a decades old, tried and tested pattern for building user interfaces. Whatever its merits, I suspect it will survive react.
And adding a new option may make an existing one obsolete. Remember ES3? I do, but I wouldn't want to write new code in it. Once new options were added (ES5, and then ES6), they made the old one obsolete. It desn't mean you can't use the old options, but why would you if the new ones are superior?
Even if we're just talking about Backbone, however, it's a little off: I mean, people use react with the non-view parts of Backbone. Often you're going to need some way to talk to APIs (say), and Backbone gives you a cheap and well-known solution for that. I'm no Backbone fanboy, but significant things have been achieved with it, and they are not now suddenly impossible because there's a new view layer on the scene.
The fact that react suggests you organize the views in a component's hierarchy has nothing to do, imho, with people calling the models from those components. It's just bad practices, whatever is the view library being used.
But I get your point nonetheless: flux & all do try to make it clearer that react should only get called from events and update the DOM as a consequence.
For the record, there's also good things being done in that field by the clojurescript community (Om/Reagent for example).
We are setting a move from it since it lacks in some areas (no POJOs, no nested, manual binding, lots of extra backbone-mini-libs required), but it does hold well at any scale.
I wouldn't direct new comers to backbone.js anymore, new trends with 10x more contributors wins over anything. I wrote about it being the C++ of JS MVC frameworks (http://berzniz.com/post/66372634868/backbonejs-is-the-c-of-j...)