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
(Somewhat) Complex Component Design – Ember.BP,...
Search
Balint Erdi
February 11, 2016
Technology
1
99
(Somewhat) Complex Component Design – Ember.BP, 2015/02/11
Balint Erdi
February 11, 2016
Tweet
Share
More Decks by Balint Erdi
See All by Balint Erdi
Data Loading Patterns with JSON API
balint
5
1.4k
Why you should consider Ember.js for your next project
balint
4
330
Data Loading Patterns in Ember
balint
1
230
Auth* in Ember apps with Torii
balint
1
310
Complex Component Design in Ember
balint
0
390
Don't call me back - How Ember uses promises and how you can, too
balint
5
11k
Acceptance testing in Ember.js
balint
1
530
Unit testing in Ember.js
balint
0
100
Introduction to ember-data
balint
0
170
Other Decks in Technology
See All in Technology
やさしいとこから始めるGitHubリポジトリのセキュリティ
tsubakimoto_s
3
1.8k
Kubernetesの「隠れメモリ消費」によるNode共倒れと、Request適正化という処方箋
g0xu
0
140
Zephyr(RTOS)でOpenPLCを実装してみた
iotengineer22
0
130
Why we keep our community?
kawaguti
PRO
0
300
開発チームとQAエンジニアの新しい協業モデル -年末調整開発チームで実践する【QAリード施策】-
qa
0
350
Embeddings : Symfony AI en pratique
lyrixx
0
350
スピンアウト講座03_CLAUDE-MDとSKILL-MD
overflowinc
0
1.4k
SSoT(Single Source of Truth)で「壊して再生」する設計
kawauso
2
380
昔話で振り返るAWSの歩み ~S3誕生から20年、クラウドはどう進化したのか~
nrinetcom
PRO
0
100
AI時代のオンプレ-クラウドキャリアチェンジ考
yuu0w0yuu
0
240
FASTでAIエージェントを作りまくろう!
yukiogawa
4
110
Phase10_組織浸透_データ活用
overflowinc
0
1.8k
Featured
See All Featured
Paper Plane
katiecoart
PRO
0
48k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
110k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
200
Docker and Python
trallard
47
3.8k
Designing for humans not robots
tammielis
254
26k
BBQ
matthewcrist
89
10k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
The Curious Case for Waylosing
cassininazir
0
280
Tell your own story through comics
letsgokoyo
1
870
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Marketing to machines
jonoalderson
1
5.1k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.5k
Transcript
Complex Component Design Ember.BP – 2015/02/11
Best of the month
None
None
Song of the month
http://frontside.io/blog/2016/01/22/functional-templating-in- ember.html
https://github.com/samselikoff/ember-cli-mirage
Survey results
(Somewhat) Complex Component Design
Basic component concepts
None
Non-block form (no hash)
Non-block form (no hash) Block form (with hash)
Non-block form (no hash) Block form (with hash) Yields parameters
to the block form (function call)
Non-block form (no hash) Block form (with hash) Yields parameters
to the block form (function call) Block params (function params)
Closure (vs. element) actions
Element actions (iact “string” actions)
None
None
None
Closure actions
None
Why closure actions? • They can return values • Enable
reacting to actions sent from the controller • Better debuggability • They can also bubble (check out ember-route- action-helper)
Component design guidelines
Short & sweet non-block form
Don’t assume too much
Allow customization
Data down, actions up (Use actions)
Data down, actions up (Use actions) Don’t do that.
Advanced concepts • Keep your component layers decoupled • Find
ways to prevent registering • Replace observers with (DOM) actions
Advanced concepts http://balinterdi.com/2015/09/10/complex-component-design- in-ember-intro.html
Thank you.