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

What's hot (20)

PDF
Introduction to DevOps
Ahmed Adel
 
PPTX
Spring Boot Tutorial
Naphachara Rattanawilai
 
PDF
Introduction to Docker Compose
Ajeet Singh Raina
 
PPTX
An Introduction to Maven
Vadym Lotar
 
PPTX
Osgi
Heena Madan
 
PPTX
Docker introduction
dotCloud
 
PDF
Introduction to Docker - VIT Campus
Ajeet Singh Raina
 
PDF
React JS - Introduction
Sergey Romaneko
 
PDF
ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...
Edureka!
 
PPTX
Angular Data Binding
Jennifer Estrada
 
PDF
Docker (Compose) 활용 - 개발 환경 구성하기
raccoony
 
PPTX
DevOps Overview
Sagar Mody
 
PPTX
Mastering the Sling Rewriter
Justin Edelson
 
PPTX
Prometheus (Prometheus London, 2016)
Brian Brazil
 
PDF
Intro To Docker
Jessica Lucci
 
PPTX
Final terraform
Gourav Varma
 
PDF
Spring boot introduction
Rasheed Waraich
 
PDF
Docker multi-stage build
Alexei Ledenev
 
PDF
Anatomy of a Continuous Integration and Delivery (CICD) Pipeline
Robert McDermott
 
PPTX
AEM and Sling
Lo Ki
 
Introduction to DevOps
Ahmed Adel
 
Spring Boot Tutorial
Naphachara Rattanawilai
 
Introduction to Docker Compose
Ajeet Singh Raina
 
An Introduction to Maven
Vadym Lotar
 
Docker introduction
dotCloud
 
Introduction to Docker - VIT Campus
Ajeet Singh Raina
 
React JS - Introduction
Sergey Romaneko
 
ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...
Edureka!
 
Angular Data Binding
Jennifer Estrada
 
Docker (Compose) 활용 - 개발 환경 구성하기
raccoony
 
DevOps Overview
Sagar Mody
 
Mastering the Sling Rewriter
Justin Edelson
 
Prometheus (Prometheus London, 2016)
Brian Brazil
 
Intro To Docker
Jessica Lucci
 
Final terraform
Gourav Varma
 
Spring boot introduction
Rasheed Waraich
 
Docker multi-stage build
Alexei Ledenev
 
Anatomy of a Continuous Integration and Delivery (CICD) Pipeline
Robert McDermott
 
AEM and Sling
Lo Ki
 

Viewers also liked (20)

PPT
Backbone.js
tonyskn
 
PPTX
Introduction To Backbone JS
paramisoft
 
PDF
Introduction to Backbone - Workshop
Oren Farhi
 
PDF
Structuring web applications with Backbone.js
Diego Cardozo
 
PDF
Backbone.js slides
Ambert Ho
 
KEY
Backbone.js
Chris Neale
 
PDF
Backbone Basics with Examples
Sergey Bolshchikov
 
PDF
Cross Domain Web
Mashups with JQuery and Google App Engine
Andy McKay
 
PDF
Sockets and rails
Shrikanth Rajarajan
 
PDF
Introduction à Marionette
Raphaël Lemaire
 
PDF
Introduction to Backbone.js
Roman Kalyakin
 
PPT
Backbone.js
Knoldus Inc.
 
PDF
Intro to Backbone.js by Azat Mardanov for General Assembly
Azat Mardanov
 
PDF
Introduction to Backbone.js
Jonathan Weiss
 
PDF
AngularJS vs. Ember.js vs. Backbone.js
Mark
 
PPTX
Backbone And Marionette : Take Over The World
harshit040591
 
KEY
Beautiful Maintainable ModularJavascript Codebase with RequireJS - HelsinkiJ...
Mikko Ohtamaa
 
PPTX
MVC & backbone.js
Mohammed Arif
 
PPTX
Backbone/Marionette recap [2015]
Andrii Lundiak
 
PDF
Introduction to Marionette Collective
Puppet
 
Backbone.js
tonyskn
 
Introduction To Backbone JS
paramisoft
 
Introduction to Backbone - Workshop
Oren Farhi
 
Structuring web applications with Backbone.js
Diego Cardozo
 
Backbone.js slides
Ambert Ho
 
Backbone.js
Chris Neale
 
Backbone Basics with Examples
Sergey Bolshchikov
 
Cross Domain Web
Mashups with JQuery and Google App Engine
Andy McKay
 
Sockets and rails
Shrikanth Rajarajan
 
Introduction à Marionette
Raphaël Lemaire
 
Introduction to Backbone.js
Roman Kalyakin
 
Backbone.js
Knoldus Inc.
 
Intro to Backbone.js by Azat Mardanov for General Assembly
Azat Mardanov
 
Introduction to Backbone.js
Jonathan Weiss
 
AngularJS vs. Ember.js vs. Backbone.js
Mark
 
Backbone And Marionette : Take Over The World
harshit040591
 
Beautiful Maintainable ModularJavascript Codebase with RequireJS - HelsinkiJ...
Mikko Ohtamaa
 
MVC & backbone.js
Mohammed Arif
 
Backbone/Marionette recap [2015]
Andrii Lundiak
 
Introduction to Marionette Collective
Puppet
 
Ad

Similar to Introduction to Backbone.js (20)

PPTX
Backbonemeetup
Ben McCormick
 
PDF
Intro to BackboneJS + Intermediate Javascript
Andrew Lovett-Barron
 
KEY
Give Your JavaScript Apps Some Spine
Lachlan Hardy
 
PDF
Resumen Backbone.js en Ingles
Francisco Quintero
 
PPSX
Introduction to backbone_js
Mohammed Saqib
 
PDF
Developing Backbonejs Applications Early Release Addy Osmani
littelenkali
 
PPT
Backbone introdunction
mzxbupt
 
PPTX
Backbone.js
898RakeshWaghmare
 
PPTX
Drupal Backbone.js in the Frontend
David Corbacho Román
 
PPTX
Backbone the Good Parts
Renan Carvalho
 
PPTX
Basics of Backbone.js
Avishekh Bharati
 
PDF
Developing Backbone js Applications Addy Osmani
leitaduminy
 
PDF
Instant download Developing Backbone js Applications Addy Osmani pdf all chapter
dinetvenitja
 
PDF
Single Page Applications
Massimo Iacolare
 
DOCX
How backbone.js is different from ember.js?
SoftProdigy - We know software!
 
KEY
Give Your JavaScript Apps A Spine
Lachlan Hardy
 
PDF
Developing maintainable Cordova applications
Ivano Malavolta
 
PPTX
BackboneJS
Artemii Kravtsov
 
PDF
[2015/2016] Backbone JS
Ivano Malavolta
 
PDF
Backbone
Glenn De Backer
 
Backbonemeetup
Ben McCormick
 
Intro to BackboneJS + Intermediate Javascript
Andrew Lovett-Barron
 
Give Your JavaScript Apps Some Spine
Lachlan Hardy
 
Resumen Backbone.js en Ingles
Francisco Quintero
 
Introduction to backbone_js
Mohammed Saqib
 
Developing Backbonejs Applications Early Release Addy Osmani
littelenkali
 
Backbone introdunction
mzxbupt
 
Backbone.js
898RakeshWaghmare
 
Drupal Backbone.js in the Frontend
David Corbacho Román
 
Backbone the Good Parts
Renan Carvalho
 
Basics of Backbone.js
Avishekh Bharati
 
Developing Backbone js Applications Addy Osmani
leitaduminy
 
Instant download Developing Backbone js Applications Addy Osmani pdf all chapter
dinetvenitja
 
Single Page Applications
Massimo Iacolare
 
How backbone.js is different from ember.js?
SoftProdigy - We know software!
 
Give Your JavaScript Apps A Spine
Lachlan Hardy
 
Developing maintainable Cordova applications
Ivano Malavolta
 
BackboneJS
Artemii Kravtsov
 
[2015/2016] Backbone JS
Ivano Malavolta
 
Backbone
Glenn De Backer
 
Ad

Recently uploaded (20)

PDF
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
July Patch Tuesday
Ivanti
 
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
July Patch Tuesday
Ivanti
 

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