12 ms·
Really? I found Backbone incredibly easy to learn because it is so simple. Compared to most other attempts at JavaScript MVC frameworks, Backbone has a very s
by rjknight 14y ago
Really? I found Backbone incredibly easy to learn because it is so simple. Compared to most other attempts at JavaScript MVC frameworks, Backbone has a very small number of 'classes' and each class has a fairly small number of methods. The event system is incredibly simple and easy to grok. The backbone.js source is also very readable and if I'm confused about some implementation details I can easily locate the relevant source. In Backbone it's bad /style/ to continue using jQuery in an "old school" way (without using the helpers provided by Backbone.View) but it still works and this makes it easy to start porting jQuery-based code to Backbone.
Angular offers a different and more indirect set of abstractions, which means that (for me) it's harder to reason about what's going on, and it's not really feasible to look at the Angular source for clues. Angular feels like a good approach if you're willing to adopt it fully and follow its conventions, but this surely takes longer to learn fully than Backbone does.
Also, Backbone plays incredibly well with CoffeeScript, if you like that kind of thing (I do, but I understand that not everyone does).