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
Ember.js in 10 Minutes
Search
patr1ck
April 19, 2012
Programming
960
11
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Ember.js in 10 Minutes
patr1ck
April 19, 2012
More Decks by patr1ck
See All by patr1ck
Fast Image Manipulation
patr1ck
2
520
Other Decks in Programming
See All in Programming
Java × distroless で 軽量なコンテナイメージを / Java on Distroless
contour_gara
0
500
Agentic UI
manfredsteyer
PRO
0
110
AI駆動開発で崩れていくコードベースを立て直す
kyoko_nr_nr
1
440
IBM Bobを活用したレガシーアプリの最新化
oniak3ibm
PRO
1
170
セキュリティの専門家じゃなくてもできる。「セキュリティ意識」をアップデートして サプライチェーン攻撃への耐性を高めよう。
tk3fftk
5
650
Copilot CLI の継戦能力を高める コンテキスト管理
nozomutu
1
1.2k
AIで効率化できた業務・日常
ochtum
0
100
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
250
CLIであることを活かしたGitHub Copilot CLI活用術 / GitHub Copilot CLI Pro Tips & Tricks
nao_mk2
1
1.2k
軽量Java基盤の設計 DIコンテナに頼らない、長期保守と1秒起動の実現 JJUG CCC 2026 Spring
macha64
0
460
気づいたらRubyで100作品 ー クリエイティブコーディングが生活の一部になるまで / 100 Ruby Sketches Later: How Creative Coding Became Part of My Life
chobishiba
3
550
「AIで開発し、AIを届ける」をEvalでつなぐ 〜AIネイティブに始めるプロダクト開発の実践〜 / Connecting "Develop with AI, deliver AI" with Eval
rkaga
4
4k
Featured
See All Featured
Speed Design
sergeychernyshev
33
1.8k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.7k
Code Review Best Practice
trishagee
74
20k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
23k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
240
Deep Space Network (abreviated)
tonyrice
0
160
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.5k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
570
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
420
Mind Mapping
helmedeiros
PRO
1
240
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
1
340
Transcript
A framework for creating ambitious web applications EMBER.JS IN 10
MINUTES
WHAT IS EMBER.JS? ARCHITECTURE- ORIENTED STRONG LINEAGE AMBITIOUS MVC
▪ Object model ▪ Computed properties ▪ Data bindings ▪
Data-bound templates ▪ Write less code! EMBER.JS FEATURES.
App.Person = Ember.Object.extend({ firstName: null, lastName: null }); App.Student =
App.Person.extend({ graduationYear: null }); OBJECT MODEL.
App.Student = App.Person.extend({ graduationYear: null }); var patrick = App.Student.create({
firstName: 'Patrick' lastName: 'Gibson' graduationYear: 2015 }); patrick.get('graduationYear'); // => 2015 patrick.set('graduationYear', 2016); OBJECT MODEL.
App.Student = Ember.Person.extend({ grades: null, gradeAverage: function() { var grades
= this.get('grades'); var total = grades.reduce(function(val, i){ return val + i; }); return total/grades.get('length'); }.property('grades.@each') }); var patrick = App.Student.create({ grades: [83, 76, 97, 60] }); patrick.get('gradeAverage'); // => 79 COMPUTED PROPERTIES.
App.school = Ember.Object.create({ city: "Embertown", schoolName: function() { var city
= this.get('city') return "University of %@".fmt(city); }.property('city') }); App.Student.extend({ attendingSchoolBinding: 'App.school.schoolName' }); patrick.get('attendingSchool') // => "University of Embertown" DATA BINDINGS.
... same javascript as before ... <script type="text/x-handlebars" > {{App.patrick.gradeAverage}}
</script> DATA-BOUND TEMPLATES.
▪ Primitives provide structure for large applications ▪ Convention over
con guration ▪ Big companies on board: Square, ZenDesk, R&D at major education companies, etc. ▪ ember-data makes it easy to persist data ▪ ember-rails makes getting started easy ▪ Optimized for developer happiness WRAP UP.
THANK YOU.
@PATR1CK AND @TOMDALE @EMBERJS EMBERJS.COM GITHUB.COM/EMBERJS IRC #EMBERJS