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
2026年 エンジニアリング自己学習法
yumechi
0
130
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
230
CSC307 Lecture 01
javiergs
PRO
0
690
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
200
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
3.9k
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
390
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
170
Grafana:建立系統全知視角的捷徑
blueswen
0
330
Fluid Templating in TYPO3 14
s2b
0
130
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
7.4k
SourceGeneratorのススメ
htkym
0
200
AIフル活用時代だからこそ学んでおきたい働き方の心得
shinoyu
0
130
Featured
See All Featured
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
0
200
First, design no harm
axbom
PRO
2
1.1k
Site-Speed That Sticks
csswizardry
13
1.1k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.3k
Producing Creativity
orderedlist
PRO
348
40k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
75
Music & Morning Musume
bryan
47
7.1k
How STYLIGHT went responsive
nonsquared
100
6k
Odyssey Design
rkendrick25
PRO
1
490
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
910
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
340
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
62
50k
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