Page 1 of 1

how backbone.js can help me?

Posted: Sun Jul 20, 2014 1:15 pm
by dotphp
Hello

I just know that backbone.js is something new.
I really want to know how backbone.js can help me in creating client side projects?
It helps me in create shrother code or I can use it instead of something else ?

Pls help me with this

Re: how backbone.js can help me?

Posted: Mon Jul 21, 2014 6:38 am
by Celauran
Backbone has been around since 2010, so it's not that new. It's a JS MVC framework and it's useful for creating a separation of concerns in your front end code. $(document).ready(...) becoming a mess of hundreds of lines of DOM manipulation, AJAX callbacks, etc? Might be worth considering Backbone (or Ember, or Angular, or whatever). Callbacks returning HTML rather than just data? Another good time to look at JS frameworks.