background preloader

Backbone.js

Facebook Twitter

Backbone Events vs. Ember Bindings: A Benchmark. Underscore.js. What is the purpose of backbone.js. Thomas Davis. Back to home Backbone.js Tutorial – by noob for noobs The official website describes Backbone.js as a library to supply structure to Javascript heavy web applications. After using Backbone.js for a week I could never see myself building any sort of Javascript functionality regardless of size without using Backbone.js or alternatives. I have decided to write a quick introduction for those trying to grasp the mechanics behind it. I am only a beginner also and would love suggestions and tips to improve my code. I am also very curious to hear what you think about how MVC ties into Javascript development and the most effective library you have used for logically organizing your Javascript.

Would be great to get a discussion on MVC vs MVVM vs others etc leave comments at the bottom! Also could you implement this example better in another framework? Understanding the Model View Controller Paradigm I have used many frameworks which promote that they use MVC. Getting started <! Setting up the main view. An Introduction to Backbone.js by Ben Gourley.

Last week I gave a presentation on Backbone.js to the rest of the developers here at Clock. The amount of exposure we've had to client side heavy-lifting varies, so the idea was to get everyone on the same page. The other guys found it pretty handy, so I thought I'd write it up here where there's a chance it could be useful to others. Why do we use Backbone? For those that don't know – Backbone.js is a JavaScript library that runs in the browser. We use it to structure client-side applications – those that run in a web browser. From Fancy Scripting to Software Engineering Increasingly, application logic and heavy lifting is heading in to the browser. Some of the things we care about: MaintainabilityCompatibilityTestabilityReusabilityDRY-nessConsistencyModularity What about jQuery? But we already use a framework, jQuery on pretty much all of our sites. Ironing out browser inconsistenciesImproving the DOM interfaceAJAXAnimation Alternatives … and many more.

What does Backbone do? Backbone.Events.