Is There Still Room for Backbone.js
Upcoming SlideShare
Loading in...5
×
 

Is There Still Room for Backbone.js

on

  • 1,026 views

Backbone.js is one of the original MV* libraries, but since it's introduction there have been many new MV* solutions made available. Find out why Backbone.js still has an important part to play in ...

Backbone.js is one of the original MV* libraries, but since it's introduction there have been many new MV* solutions made available. Find out why Backbone.js still has an important part to play in JavaScript application development.

Statistics

Views

Total Views
1,026
Views on SlideShare
358
Embed Views
668

Actions

Likes
0
Downloads
4
Comments
0

5 Embeds 668

http://www.jamessugrue.ie 556
http://corkdev.io 105
http://feedly.com 4
http://www.slideee.com 2
http://www.corkdev.io 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Is There Still Room for Backbone.js Is There Still Room for Backbone.js Presentation Transcript

  • Is there still room for backbone.js? of course there is! what would we do without it …
  • Principal Front End Architect at Carma AUthor of Beginning Backbone.js @SUGRUE www.jamessugrue.ie
  • HELPS STRUCTURE CODE MODEL VIEW CONTROLLER LIGHTWEIGHT 6.4KB MATURE 2010 UNOPINIONATED View slide
  • WHY DO WE NEED MODEL VIEW WHATEVER View slide
  • 2005
  • 2006
  • 10 MINUTES LATER
  • EVEN JAVASCRIPT NEEDS STUCTURE
  • Controller View Model DOM
  • BACK TO BACKBONE
  • DEPENDS ON OPTIONAL
  • REpRESENts A SINGLE DATA OBJECT ! CONNECTS TO SERVER URL TO POPULATE / PERSIST ! WHEN DATA CHANGES, EVENTS FIRE BACKBONE MODEL
  • BACKBONE MODEL Tweet = Backbone.Model.extend({ });
  • BACKBONE MODEL: BASICS DEFAULT VARIABLES CONSTRUCTOR BUILT-IN FUNCTIONS YOUR OWN FUNCTIONS
  • BACKBONE MODEL: USAGE
  • BACKBONE MODEL: CHANGE EVENTS
  • BACKBONE COLLECTION BULK OPERATIONS ON MODELS ! CONNECTS TO SERVER URL TO POPULATE / PERSIST ! WHEN DATA CHANGES, EVENTS FIRE ! LOTS OF QUERY and FILTER FUNCTIONS
  • BACKBONE COLLECTION Timeline = Backbone.Collection.extend({ });
  • BACKBONE COLLECTION: BASICS MODEL CONSTRUCTOR URL
  • BACKBONE VIEW CHANGES THE DOM ! CAN HANDLE DOM EVENTS ! SUBSCRIBE TO CHANGE EVENTS IN THE DATA LAYER ! USE TEMPLATE FOR EFFICIENT RENDERING
  • BACKBONE VIEW: THE DOM
  • BACKBONE VIEW: THE TEMPLATE
  • BACKBONE VIEW TimelineView = Backbone.View.extend({ });
  • BACKBONE VIEW: BASICS DOM ELEMENT TEMPLATE DOM EVENT HANDLING RETRIEVE THE COLLECTION
  • BACKBONE VIEW: RENDERING APPEND TO DOM
  • BACKBONE ROUTER HANDLES APPLICATION STATE ! PROVIDES BOOKMARKABLE STATE ! SUBSCRIBE TO CHANGE EVENTS IN THE DATA LAYER [CONTROLLER]
  • BACKBONE ROUTER CONTROLLER AppRouter = Backbone.Router.extend({ });
  • BACKBONE ROUTER: BASICS ROUTES EVENTS HANDLERS
  • DOM Model Collection ROUTER VIEW
  • THINGS TO WATCH OUT FOR
  • ZOMBIE VIEWS
  • BAckBONE EYE
  • BREAK DOWN 
 RENDER FUNCTION
  • PRECOMPILE TEMPLATES
  • HOW DOES BACKBONE STAND OUT?
  • UNOPINIONATED === CONTROL
  • ECO SYSTEM
  • MATURITY
  • TOOLING
  • WANT TO USE BACKBONE TONIGHT?