Backbone.js is a JavaScript library, among many others, that is gaining special attention in the web development community because it’s ease of use and the structure that it provides to JavaScript applications.
Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions,views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
When working on a web application that involves a lot of JavaScript, one of the first things you learn is to stop tying your data to the DOM. It’s all too easy to create JavaScript applications that end up as tangled piles of jQuery selectors and callbacks, all trying frantically to keep data in sync between the HTML UI, your JavaScript logic, and the database on your server. For rich client-side applications, a more structured approach is often helpful.
Backbone’s Main Benifits Includes
- Organize the structure to your application
- Simplify server-side persistence
- Decouple the DOM from your page’s data
- Model data, views and routers in a succinct manner
- Provide DOM, model and collection synchronization