by calebgilbert · 13y ago · 0 comments
For instance Backbone is pretty much what would happen (give or take) if all the JavaScript books on how to program OOP and MV* got together and build a JS framework. It's not fancy, it's not "magic", but it is very approachable in terms of advanced standard/best/popular JavaScript programming practices.
AngularJS left all that stuff behind and built their own little world. It might even be a great world, but on the surface or to the implementation-level developer has little to do with "regular" advanced JavaScript programming techniques/patterns.
To me it's a bit like the JavaScript version of Drupal, which gives you a ton out of the box, but is just it's own whole world of conventions etc, that has little do with anything seen outside of itself.
Ouch, but accurate.
So if you prefer Sinatra over Rails, you'll probably prefer Backbone over Angular or Ember. If you like all the magic Rails has to offer, you're probably going to feel right at home with Angular. But comparing Angular to Drupal is ridiculous.
Angular is not simple in any since of the word. (Especially if we're talking about its documentation.) And it's components are only reusable inside the Angular bubble.
For me, Drupal sucks for developers because you're configuring a bunch of objects to try to build a system but you're a) at the mercy of the initial design and b) going to run into hook soup hell, especially once a couple of plugins are installed.
Angular is nothing like that. You have a few classes of things you'll create. They're all well thought our and have very specific uses. None of them constrain you in any way, all the code inside is yours.
I don't get the comparison. I would never touch Drupal again however you would have to produce a very convincing argument to move me off Angular.
I would not call Angular magic. Basically there is a "loop", the digest cycle , whereas in Backbone you would add Backbone components to your code.
AngularJS creator worked at Adobe on Flex , and Adobe in fact attempted to create a "AngularJS" for non developers bundled with Dreamweaver ( Spry framework , but databinding was only one way).
I like AngularJS but since i dont do form centric apps ( more reactive documents with a lot of animations,svg or canvas) i went with Ractive + Backbone. Ractive is easier to learn and to use.
But AngularJS is pretty RAD when you have a lot of forms ( an admin panel ,etc ...), and provides a big testing plateform too.
> To me it's a bit like the JavaScript version of Drupal
hmm yeah maybe , drupal hooks are a bit like backbone directives in spirit.I'm wondering why you would prefer angular for a form-centric app?
I've used angular and rivets.js + backbone with success, my preference being angular but Ractive looks like a way to get awesome templating and databinding without committing the entire app to a single monolithic framework.
It also seems that server side rendering is more reachable with it's mustachy roots.