Backbonejs vs Angularjs

by Irfan Ali

NOTE :  I am not trashing Backbone. It was a great tool earlier and in my opinion, its usefulness has diminished since the introduction of newer frameworks like Angular and Ember.

I know that people in general, still choose Backbone over Angular because it seems to be the safer choice, because you can’t find as many X-framework developers as Backbone etc etc.. I am attempting to make an argument that Angular is a better choice in all scenarios where you would use Backbone. Finding developers and how much you pay them is an organizational choice. But, my attempt here is to prove that, if you have 2 smart developers who have no knowledge of Angular and pick 4-5 developers who know Backbone for a largish project, the investment of learning Angular will pay off in the long run. Less code to write means less code to test means less code to debug means less code to maintain. It also means a lesser page-weight at the end of the day. (Had so many issues at ETS to decide the right framework)These are some of the advantages you should not ignore if you are making an objective decision.

Size/Compectness:

One of the first points that people quote, when they talk about the advantages of Backbone is its compactness. Its just xKB minified and gzipped. Lets see some stats, shall we?.

Angular ( 1.0.3 ) is 77KB minified. If you include Angular ( just that one file )it WILL work on its own.. It does not depend on anything.. If you include JQuerybefore Angular, then angular will start using JQuery for DOM manipulation. But, including JQuery is upto you. You dont necessarily have to.

Backbone by itself is around 18KB minified (link). Now add in its dependencies Underscore ( 13.6KB minified – link ) and then we have JQuery ( 93KB minified)  / Zepto ( 25KB minified ) itself ( You cant use Backbone on the client side without one of these! )

 

To note here, Backbone has a much stronger dependency on JQuery than Angular. Some people might complain that even Angular can use JQuery or people generally tend to include JQuery along with Angular in projects etc etc.. People do, but its not absolutely necessaryA Front End project with Angular can make do without JQuery.

Here is what you get, when you decide to write an application with Backbone as your framework. 5 Classes. Model, View, Events, Collection and Router. And Backbone.Sync  ( but lets leave it out for now ) . Mainly, this is what constitutes Backbone itself. That’s it. These are all Base Classes. When you want any of these functionalities you extend these classes and make use of them.

9 Comments

minecraft games for free · May 9, 2014 at 1:20 pm

What i don’t understood is actually how you’re no longer actually much more
well-liked than you may be right now. You’re so intelligent.
You know thus significantly on the subject of this matter, made me
personally consider it from a lot of varied angles.
Its like men and women don’t seem to be interested until it is
one thing to accomplish with Woman gaga! Your personal stuffs outstanding.
At all times deal with it up!

minecraft games · May 11, 2014 at 9:59 am

It’s a shame you don’t have a donate button! I’d definitely donate to
this outstanding blog! I guess for now i’ll settle for bookmarking
and adding your RSS feed to my Google account. I look forward to fresh
updates and will talk about this website with my Facebook group.
Chat soon!

    irfan · May 7, 2015 at 4:40 am

    Thank you for your kind words and now I am back here! You will find more posts soon! Happy reading!

minecraft games · May 27, 2014 at 6:10 pm

This is very fascinating, You’re an excessively professional blogger.
I’ve joined your feed and look ahead to seeking more of your magnificent post.
Also, I have shared your web site in my social networks

jak schudnąć · June 15, 2014 at 11:36 pm

Hello there! This blog post couldn’t be written any better!
Looking at this article reminds me of my previous roommate!
He always kept preaching about this. I most certainly will forward
this information to him. Pretty sure he’ll have a
great read. I appreciate you for sharing!

http://en.wikipedia.org · September 29, 2014 at 11:29 am

Hello, i read your blog from time to time and i own a similar one and
i was just curious if you get a lot of spam feedback?
If so how do you stop it, any plugin or anything you can advise?

I get so much lately it’s driving me crazy so any help
is very much appreciated.

Tabatha · October 5, 2014 at 11:58 pm

You share interesting things here. I think that your website can go viral easily, but you must give it initial boost and i know how to
do it, just type in google for – wcnu traffic increase

Dieter · March 3, 2015 at 12:09 pm

Awesome content. You should use social websites to increase traffic and make your site go viral.
There are tools which automate this time consuming process.Visitors
can flood your blog in no time, just type in google for:
Rixisosa’s Social Automation

Archie Trzaska · April 12, 2015 at 2:19 pm

Really and as I have not thought about it earlier

Leave a Reply

Your email address will not be published. Required fields are marked *