Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Backbone.js or Ember.js with Ruby on Rails

I was looking for information comparing Ember.js and Backbone.js for use with a Ruby on Rails backend. Does anyone have experience working with both of these client side frameworks and would be willing provide some insight around them?

like image 826
Vince Avatar asked Mar 28 '12 16:03

Vince


People also ask

Is Backbone JS still relevant?

Backbone. Backbone has been around for a long time, but it's still under steady and regular development. It's a good choice if you want a flexible JavaScript framework with a simple model for representing data and getting it into views.

What is backbone JS comparable to?

Vue. js, React, AngularJS, Angular 2, and Ember. js are the most popular alternatives and competitors to Backbone. js.

What is Ember js similar to?

We have compiled a list of solutions that reviewers voted as the best overall alternatives and competitors to ember. js, including Express. js, Syncfusion Essential Studio Enterprise Edition, Angular, and angularjs.

Is Backbone JS easy to learn?

Backbone.js Is Friendlyjs is neither difficult to learn nor difficult to use, and the time you will spend learning to use this serviceable framework will be well worth it, for you will learn how to use one of the most popular front-end frameworks and learn how to build modern web applications on the front end.


2 Answers

Both are great, and you can't make a bad choice imho.

There is a good thread on this subject on Quora, with an answer from one on the Ember.js author, Yehuda Katz: http://www.quora.com/What-are-the-key-differences-between-Ember-js-formerly-SproutCore-2-0-and-Backbone-js

A quote from the thread (Austin Bales)

A lot of the differences between the two come down to this: SC2/Ember have made a few decisions in advance about the tools and workflows you'll use. Backbone has very few opinions on matters of templating, rendering, hierarchy, and KVO/Binding – in Backbone there's almost always "More Than One Way To Do It" and almost never a predefined way. In contrast, Ember provides a little more infrastructure and default options out of the box.

The fact that Ember.js is opinionated is probably a good thing in the long run I'd say. It's kind of the same philosophy as rails where they often make choices for you.

I actually have to make this choice at work as well. I tried working a little bit with both, and I have to say, I feel more confortable with Backbone, but it's really not a well informed opinion ;)

ps: check this out: http://addyosmani.github.com/todomvc/

It's a todo app implemented with all the popular frameworks. It could help you compare the two.


edit: Since I wrote this answer, I've been trying to learn Ember, and I'm really liking it. Here is an AWESOME blog about ember, everything is very well explained, clear, in depth: http://darthdeus.github.com/.

Ideally, you would master both, as I feel that they have different use cases now.

like image 174
Robin Avatar answered Sep 20 '22 21:09

Robin


Gordon Hempton has written a nice article about JS frameworks here: http://codebrief.com/2012/01/the-top-10-javascript-mvc-frameworks-reviewed/

like image 45
Mike Aski Avatar answered Sep 21 '22 21:09

Mike Aski