SlideShare a Scribd company logo
Introduction to
Backbone.js
Pragnesh Vaghela | @technologythree | technologythree.com
Problem
1. web application that involves a lot of JavaScript
2. applications end up as tangled piles of jQuery
selectors and callbacks
3. hard to keep data in sync between the HTML UI,
JavaScript logic & the database
4. you can end up with a pile of spaghetti code - code
that is disorganized and difficult to follow
@ 2013 Technology Three 2
What is Backbone.js?
1. lightweight JavaScript library that adds structure to
your client-side code
2. makes it easy to manage and decouple concerns in
your application
3. MVC for the client
4. open sourced by company called DocumentCloud
5. light weight at under 4kb
@ 2013 Technology Three 3
Backbone.js MVC
1. your data as Models, which can be created, validated,
destroyed, and saved to the server
2. UI action causes an attribute of a model to change, the
model triggers a "change" event; all the Views that display
the model's state can be notified of the change, so that they
are able to respond accordingly, re-rendering themselves
with the new information
3. when the model changes, the views simply update
themselves
4. Backbone.Router provides methods for routing client-side
pages, and connecting them to actions and events.
@ 2013 Technology Three 4
Backbone.js dependencies
1. only hard dependency is either Underscore.js ( >=
1.4.3) or Lo-Dash
2. either jQuery ( >= 1.7.0)or Zepto
@ 2013 Technology Three 5
Does it replace jQuery?
1. NO
2. complementary in their scopes with almost no
overlaps in functionality
3. Backbone handles all the higher level abstractions,
while jQuery – or similar libraries – work with the
DOM, normalize events and so on
@ 2013 Technology Three 6
Where should I use Backbone.js?
1. ideally suited for creating front end heavy, data
driven applications
2. scales well, from embedded widgets to massive
apps
3. think Gmail
@ 2013 Technology Three 7
@ 2013 Technology Three 8
Real world
Backbone.js
Applications
USA Today
takes advantage of the
modularity of
Backbone's
data/model lifecycle —
which makes it simple
to create, inherit,
isolate, and link
application objects —
to keep the codebase
both manageable and
efficient. Website also
makes heavy use of
the Backbone Router
to control the page for
both pushState-
capable and legacy
browsers
@ 2013 Technology Three 9
LinkedIn Mobile
to create its next-
generation HTML5
mobile web app.
Backbone made it
easy to keep the app
modular, organized
and extensible so
that it was possible
to program the
complexities of
LinkedIn's user
experience
@ 2013 Technology Three 10
Walmart Mobile
to create the new version of
their mobile web application
@ 2013 Technology Three 11
Airbnb
in many of its
products. It started
with Airbnb Mobile
Web (built in 6
weeks by a team of
3) and has since
grown to Wish
Lists, Match,
Search,
Communities,
Payments, and
Internal Tools
@ 2013 Technology Three 12
Pandora
to help manage the
user interface and
interactions. For
example, there's a
model that represents
the "currently playing
track", and multiple
views that
automatically update
when the current
track changes. The
station list is a
collection, so that
when stations are
added or changed, the
UI stays up to date
@ 2013 Technology Three 13
Thank You
Pragnesh Vaghela | @technologythree | technologythree.com

More Related Content

PDF
Angular Observables & RxJS Introduction
PDF
Angular state Management-NgRx
PDF
A Tour of Combine
PDF
Design patterns for microservice architecture
PDF
Angular - Chapter 7 - HTTP Services
PDF
Secret Management with Hashicorp’s Vault
PPTX
Secure your app with keycloak
PDF
Ngrx slides
Angular Observables & RxJS Introduction
Angular state Management-NgRx
A Tour of Combine
Design patterns for microservice architecture
Angular - Chapter 7 - HTTP Services
Secret Management with Hashicorp’s Vault
Secure your app with keycloak
Ngrx slides

What's hot (20)

PPTX
Angular 2.0 forms
PPTX
Spring security
PPTX
Angularjs PPT
PPTX
Sharing Data Between Angular Components
PPTX
React Native
PPTX
Vault - Secret and Key Management
PPTX
Angular tutorial
PDF
PDF
Angular - Chapter 4 - Data and Event Handling
PDF
GCP CloudRun Overview
PDF
Angular Advanced Routing
PPTX
Angular interview questions
PPTX
PDF
Kubernetes Monitoring & Best Practices
PDF
NestJS
PPTX
The Clean Architecture
PDF
Low Code Integration with Apache Camel.pdf
PPTX
Angular
ODP
Routing & Navigating Pages in Angular 2
PDF
React js use contexts and useContext hook
Angular 2.0 forms
Spring security
Angularjs PPT
Sharing Data Between Angular Components
React Native
Vault - Secret and Key Management
Angular tutorial
Angular - Chapter 4 - Data and Event Handling
GCP CloudRun Overview
Angular Advanced Routing
Angular interview questions
Kubernetes Monitoring & Best Practices
NestJS
The Clean Architecture
Low Code Integration with Apache Camel.pdf
Angular
Routing & Navigating Pages in Angular 2
React js use contexts and useContext hook
Ad

Viewers also liked (20)

PPT
Backbone.js
PPTX
Introduction To Backbone JS
PDF
Introduction to Backbone - Workshop
PDF
Structuring web applications with Backbone.js
PDF
Backbone.js slides
KEY
Backbone.js
PDF
Backbone Basics with Examples
PDF
Cross Domain Web
Mashups with JQuery and Google App Engine
PDF
Sockets and rails
PDF
Introduction à Marionette
PDF
Introduction to Backbone.js
PPT
Backbone.js
PDF
Intro to Backbone.js by Azat Mardanov for General Assembly
PDF
Introduction to Backbone.js
PDF
AngularJS vs. Ember.js vs. Backbone.js
PPTX
Backbone And Marionette : Take Over The World
KEY
Beautiful Maintainable ModularJavascript Codebase with RequireJS - HelsinkiJ...
PPTX
MVC & backbone.js
PPTX
Backbone/Marionette recap [2015]
PDF
Introduction to Marionette Collective
Backbone.js
Introduction To Backbone JS
Introduction to Backbone - Workshop
Structuring web applications with Backbone.js
Backbone.js slides
Backbone.js
Backbone Basics with Examples
Cross Domain Web
Mashups with JQuery and Google App Engine
Sockets and rails
Introduction à Marionette
Introduction to Backbone.js
Backbone.js
Intro to Backbone.js by Azat Mardanov for General Assembly
Introduction to Backbone.js
AngularJS vs. Ember.js vs. Backbone.js
Backbone And Marionette : Take Over The World
Beautiful Maintainable ModularJavascript Codebase with RequireJS - HelsinkiJ...
MVC & backbone.js
Backbone/Marionette recap [2015]
Introduction to Marionette Collective
Ad

Similar to Introduction to Backbone.js (20)

PPTX
Backbonemeetup
PDF
Intro to BackboneJS + Intermediate Javascript
KEY
Give Your JavaScript Apps Some Spine
PDF
Resumen Backbone.js en Ingles
PPSX
Introduction to backbone_js
PDF
Developing Backbonejs Applications Early Release Addy Osmani
PPT
Backbone introdunction
PPTX
Backbone.js
PPTX
Drupal Backbone.js in the Frontend
PPTX
Backbone the Good Parts
PPTX
Basics of Backbone.js
PDF
Developing Backbone js Applications Addy Osmani
PDF
Instant download Developing Backbone js Applications Addy Osmani pdf all chapter
PDF
Single Page Applications
PDF
Developing Backbone js Applications Addy Osmani
DOCX
How backbone.js is different from ember.js?
KEY
Give Your JavaScript Apps A Spine
PDF
Developing maintainable Cordova applications
PPTX
BackboneJS
PDF
[2015/2016] Backbone JS
Backbonemeetup
Intro to BackboneJS + Intermediate Javascript
Give Your JavaScript Apps Some Spine
Resumen Backbone.js en Ingles
Introduction to backbone_js
Developing Backbonejs Applications Early Release Addy Osmani
Backbone introdunction
Backbone.js
Drupal Backbone.js in the Frontend
Backbone the Good Parts
Basics of Backbone.js
Developing Backbone js Applications Addy Osmani
Instant download Developing Backbone js Applications Addy Osmani pdf all chapter
Single Page Applications
Developing Backbone js Applications Addy Osmani
How backbone.js is different from ember.js?
Give Your JavaScript Apps A Spine
Developing maintainable Cordova applications
BackboneJS
[2015/2016] Backbone JS

Recently uploaded (20)

PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Encapsulation theory and applications.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Network Security Unit 5.pdf for BCA BBA.
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Approach and Philosophy of On baking technology
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Chapter 3 Spatial Domain Image Processing.pdf
Encapsulation theory and applications.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Network Security Unit 5.pdf for BCA BBA.
The AUB Centre for AI in Media Proposal.docx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Digital-Transformation-Roadmap-for-Companies.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Encapsulation_ Review paper, used for researhc scholars
Mobile App Security Testing_ A Comprehensive Guide.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Approach and Philosophy of On baking technology
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
The Rise and Fall of 3GPP – Time for a Sabbatical?

Introduction to Backbone.js

  • 1. Introduction to Backbone.js Pragnesh Vaghela | @technologythree | technologythree.com
  • 2. Problem 1. web application that involves a lot of JavaScript 2. applications end up as tangled piles of jQuery selectors and callbacks 3. hard to keep data in sync between the HTML UI, JavaScript logic & the database 4. you can end up with a pile of spaghetti code - code that is disorganized and difficult to follow @ 2013 Technology Three 2
  • 3. What is Backbone.js? 1. lightweight JavaScript library that adds structure to your client-side code 2. makes it easy to manage and decouple concerns in your application 3. MVC for the client 4. open sourced by company called DocumentCloud 5. light weight at under 4kb @ 2013 Technology Three 3
  • 4. Backbone.js MVC 1. your data as Models, which can be created, validated, destroyed, and saved to the server 2. UI action causes an attribute of a model to change, the model triggers a "change" event; all the Views that display the model's state can be notified of the change, so that they are able to respond accordingly, re-rendering themselves with the new information 3. when the model changes, the views simply update themselves 4. Backbone.Router provides methods for routing client-side pages, and connecting them to actions and events. @ 2013 Technology Three 4
  • 5. Backbone.js dependencies 1. only hard dependency is either Underscore.js ( >= 1.4.3) or Lo-Dash 2. either jQuery ( >= 1.7.0)or Zepto @ 2013 Technology Three 5
  • 6. Does it replace jQuery? 1. NO 2. complementary in their scopes with almost no overlaps in functionality 3. Backbone handles all the higher level abstractions, while jQuery – or similar libraries – work with the DOM, normalize events and so on @ 2013 Technology Three 6
  • 7. Where should I use Backbone.js? 1. ideally suited for creating front end heavy, data driven applications 2. scales well, from embedded widgets to massive apps 3. think Gmail @ 2013 Technology Three 7
  • 8. @ 2013 Technology Three 8 Real world Backbone.js Applications
  • 9. USA Today takes advantage of the modularity of Backbone's data/model lifecycle — which makes it simple to create, inherit, isolate, and link application objects — to keep the codebase both manageable and efficient. Website also makes heavy use of the Backbone Router to control the page for both pushState- capable and legacy browsers @ 2013 Technology Three 9
  • 10. LinkedIn Mobile to create its next- generation HTML5 mobile web app. Backbone made it easy to keep the app modular, organized and extensible so that it was possible to program the complexities of LinkedIn's user experience @ 2013 Technology Three 10
  • 11. Walmart Mobile to create the new version of their mobile web application @ 2013 Technology Three 11
  • 12. Airbnb in many of its products. It started with Airbnb Mobile Web (built in 6 weeks by a team of 3) and has since grown to Wish Lists, Match, Search, Communities, Payments, and Internal Tools @ 2013 Technology Three 12
  • 13. Pandora to help manage the user interface and interactions. For example, there's a model that represents the "currently playing track", and multiple views that automatically update when the current track changes. The station list is a collection, so that when stations are added or changed, the UI stays up to date @ 2013 Technology Three 13
  • 14. Thank You Pragnesh Vaghela | @technologythree | technologythree.com