Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ERDDUG - Backbone.js
Search
kmckelvin
March 18, 2012
Programming
2
150
ERDDUG - Backbone.js
Demo of Backbone.js at ERDDUG on 17 March 2012
kmckelvin
March 18, 2012
Tweet
Share
Other Decks in Programming
See All in Programming
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
1.1k
今から始めるClaude Code超入門
448jp
8
8.8k
Architectural Extensions
denyspoltorak
0
290
Implementation Patterns
denyspoltorak
0
290
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
690
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
1
2.5k
CSC307 Lecture 08
javiergs
PRO
0
670
CSC307 Lecture 04
javiergs
PRO
0
660
dchart: charts from deck markup
ajstarks
3
990
CSC307 Lecture 06
javiergs
PRO
0
690
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
190
KIKI_MBSD Cybersecurity Challenges 2025
ikema
0
1.3k
Featured
See All Featured
Building Adaptive Systems
keathley
44
2.9k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
180
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
140
SEO for Brand Visibility & Recognition
aleyda
0
4.2k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.2k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
170
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.1k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
120
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
66
Evolving SEO for Evolving Search Engines
ryanjones
0
120
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Transcript
ERDDUG - 17 March 2012 Kevin McKelvin Sunday 18 March
12
Speaker.bio Kevin McKelvin @kmckelvin www.mcdev.za.net Sunday 18 March 12
JavaScript (for n00bz!) “JavaScript is the one language people feel
they can use, without having to learn it first.” Sunday 18 March 12
setName = function(name) { this.name = name } obj =
{ setObjName: setName } obj.setObjName(“John”); setName.call(obj, “John”); setName.apply(obj, [“John”]); this? Sunday 18 March 12
Constructors Album = function(name) { this.name = name; this.showName =
function() { console.log(this.name) }; } abbey_road = new Album(‘Abbey Road’); abbey_road.showName(); # Logs “Abbey Road” Sunday 18 March 12
Prototypes Album.prototype.showName = function() { console.log(this.name); } Album = function(name)
{ this.name = name; } abbey_road.showName(); # Logs “Abbey Road” abbey_road = new Album(‘Abbey Road’); Sunday 18 March 12
Prototypical Inheritance AudioAlbum = function(name) { this.name = name; }
AudioAlbum.prototype = Album audio = new AudioAlbum(“Deep Purple”); audio.showName(); # Logs “Deep Purple” Sunday 18 March 12
Sunday 18 March 12
What is Backbone.js? Sunday 18 March 12
JAVASCRIPT ”MVC” Sunday 18 March 12
Models Album = Backbone.Model.extend({ ... }) Sunday 18 March 12
collections AlbumCollection = Backbone.Collection.extend({ model: Album, url: ‘/albums’ }); Sunday
18 March 12
views AlbumView = Backbone.View.extend({ tagName: ‘li’, initialize: function() { this.template
= ... }, render: function() { ... } }) Sunday 18 March 12
templates <script id="user" type="text/html"> <li> <p class="name">Hello I'm {{ name
}}</p> <p> <a href="http://twitter.com/ {{ twitter }}">@{{ twitter }} </a> </p> </li> </script> Sunday 18 March 12
ROUTER var Workspace = Backbone.Router.extend({ routes: { "help": "help", //
#help "search/:query": "search", // #search/kiwis "search/:query/p:page": "search" // #search/kiwis/p7 }, help: function() { ... }, search: function(query, page) { ... } }); Sunday 18 March 12
DEMO :) Sunday 18 March 12
resources backbonejs.org underscorejs.org peepcode.com Sunday 18 March 12