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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
kmckelvin
March 18, 2012
Programming
150
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ERDDUG - Backbone.js
Demo of Backbone.js at ERDDUG on 17 March 2012
kmckelvin
March 18, 2012
Other Decks in Programming
See All in Programming
OSもどきOS
arkw
0
600
Hunting Vulnerabilities in Symfony with LLMs
vinceamstoutz
0
560
SREは、MCPとSRE Agentをこう使え!
kazumax55
0
120
スマートグラスで並列バイブコーディング
hyshu
0
260
Semantic Version 単位で戦略を柔軟に変えて、パッケージアップデートを自動化する
daitasu
1
310
「なぜそう決めたのか」を残し続ける仕組み ― Notion AI カスタムエージェント × Slack連携による設計判断の自動記録 - NIKKEI Tech Talk #47
niftycorp
PRO
0
230
Oxcを導入して開発体験が向上した話
yug1224
4
340
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.7k
ローカルLLMでどこまでコードが書けるか -拡張版 / How much code can be written on a local LLM Extended
kishida
12
4.5k
Skillsは効率化、Agentsは"自分の拡張"——Builder時代のエージェント編成(CC Night 2026)
wemra
1
170
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
300
TAKTでAI駆動開発の品質を設計する
j5ik2o
7
1.5k
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
67
55k
RailsConf 2023
tenderlove
30
1.5k
Typedesign – Prime Four
hannesfritz
42
3.1k
The Cult of Friendly URLs
andyhume
79
6.9k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
260
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.3k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
450
A Soul's Torment
seathinner
6
3k
Technical Leadership for Architectural Decision Making
baasie
3
420
Designing for humans not robots
tammielis
254
26k
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