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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
音楽のための関数型プログラミング言語mimiumにおける多段階計算の活用
tomoyanonymous
1
370
属人化した知識を、 AIが辿れる地図にする
pkshadeck
PRO
1
130
AI Engineeringは、AIプロダクトだけのものか? 〜AIがソフトウェアを作る時代の新しい当たり前〜 / No AI in your product. AI Engineering in your development.
rkaga
4
310
AI時代のPHPer生存戦略 ~「言語、もうなんでもよくない?」に本気で向き合う~
vivion
0
210
2年かけて Deno に DOMMatrix を実装した話 / How I implemented DOMMatrix in Deno over two years
petamoriken
0
190
為什麼你並不需要ViewModel / No, you don't need a ViewModel
lovee
1
450
JAWS-UG横浜 #102 AWSサ終供養LT会 成仏できない AWS サービスたち 〜本日、三体供養します〜
maroon1st
0
280
SREの積み重ねがAI駆動開発のガードレールになった ― 7つの実践/SRE Guardrails The 7
tomoyakitaura
9
5.9k
ドリフトを絶対に許さない(?)CDK運用 / CDK Ops with Zero Tolerance for Drifts (?)
akihisaikeda
1
130
Haskell/Servantを通してWebミドルウェアを捉え直す
pizzacat83
1
630
FDEが実現するAI駆動経営の現在地
gonta
2
240
PHPだって関数型したい 〜できること、できないこと〜 / fp-in-php
jsoizo
1
260
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.1k
Side Projects
sachag
455
43k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
550
Into the Great Unknown - MozCon
thekraken
41
2.6k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
230
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
64
56k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.5k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
470
Six Lessons from altMBA
skipperchong
29
4.4k
Technical Leadership for Architectural Decision Making
baasie
3
450
Building a Scalable Design System with Sketch
lauravandoore
463
34k
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