MHN

Poll: Which JavaScript framework do you use (and why)?

48 points by k-i-m·4610 days ago·Show in HN

I'm trying to figure out which is the best javascript framework to learn. The last days I've read many articles and docs but I still can't decide.

My first choice at the moment is batman.js which is very similar to rails (where I'm coming from), but I'm worried that it's not so developed like others (at least checking the github repo)

  1. AngularJS
    132 points
  2. Ember
    98 points
  3. Backbone
    78 points
  4. Other
    55 points
  5. Meteor
    20 points
  6. Knockout
    19 points
  7. CANjs
    2 points
  8. Spine
    2 points
  9. Batman
    1 point
Add a comment on Hacker News →
3 of 74 comments
  1. We use Backbone with a view layer that we wrote on top of it called Ribcage: http://github.com/techwraith/ribcage-view

    Backbone walks the line between framework and a collection of modules really well. It gives you just enough to be productive without being overly complex or restrictive. If you go the Backbone route, here's some pointers:

    • Make sure you have a system in place for model management, having multiple models around for the same data can be a nightmare
    • Backbone views are a bit too simple most of the time, you'll want to at least add a view hierarchy system and lifecycle events/methods.
    • You can use the router for as much or as little as you'd like, don't feel like you have to have a new URL for every state in your app.
  2. I use backbone, I like it because it's less of a framework and more of a way of structuring your code, you can decide the rest and there are loads of modules/libraries out there to help you out.

  3. I've worked over the last two years on a library called Falcon.js (http://stoodder.github.io/falconjs/). It's your typically MVC/MVVM structure with similar concepts as Backbone (Models, Collections, Views). But utilizes the awesome data-binding architecture of Knockout. Falcon's core belief is that front-end developers shouldn't explicitly have javascript mixed with html (or vice versa). This is made possible only because of how Knockout handles data binding and templating. Falcon adds common sense architecture around that belief. Take a look! I'm always excited for feedback. I've use Falcon in many production level apps both for desktop web and mobile hybrid apps.