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
Conquering Massive Traffic Spikes in Ruby Applications with Pitchfork
riseshia
0
100
非同期jobをtransaction内で 呼ぶなよ!絶対に呼ぶなよ!
alstrocrack
0
130
Introducing FrankenPHP gRPC
dunglas
2
1k
Playwrightはどのようにクロスブラウザをサポートしているのか
yotahada3
7
2.1k
Чего вы не знали о строках в Python – Василий Рябов, PythoNN
sobolevn
0
140
どの様にAIエージェントと 協業すべきだったのか?
takefumiyoshii
0
130
パフォーマンスチューニングで Web 技術を深掘り直す
progfay
18
4.6k
Repenser les filtres API Platform: une nouvelle syntaxe
vinceamstoutz
2
130
Reactをクライアントで使わない
yusukebe
7
5.5k
Serena MCPのすすめ
wadakatu
3
220
2025年版 サーバーレス Web アプリケーションの作り方
hayatow
22
24k
麻雀点数計算問題生成タスクから学ぶ Single Agentの限界と Agentic Workflowの底力
po3rin
5
1.9k
Featured
See All Featured
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Building an army of robots
kneath
306
46k
Context Engineering - Making Every Token Count
addyosmani
3
120
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.6k
Git: the NoSQL Database
bkeepers
PRO
431
66k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.1k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
Gamification - CAS2011
davidbonilla
81
5.4k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.1k
Designing for Performance
lara
610
69k
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