Frontend infrastructure (EmberConf 2015)
-
Upload
samselikoff -
Category
Technology
-
view
594 -
download
0
Transcript of Frontend infrastructure (EmberConf 2015)
![Page 1: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/1.jpg)
Bring Sanity to your!Frontend Infrastructure!with EmberJS
@samselikoff
![Page 2: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/2.jpg)
Sam Selikoff
TED
Burlington, VT
Economics, snowboarding, music
![Page 3: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/3.jpg)
A story
![Page 4: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/4.jpg)
Acme, Inc
![Page 5: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/5.jpg)
Web appCodebase
![Page 6: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/6.jpg)
monolith
![Page 7: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/7.jpg)
growth
![Page 8: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/8.jpg)
Data layer Interfaces
API
![Page 9: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/9.jpg)
infrastructure
![Page 10: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/10.jpg)
Backend
![Page 11: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/11.jpg)
![Page 12: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/12.jpg)
Independent
![Page 13: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/13.jpg)
Scalable
![Page 14: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/14.jpg)
Consistent
![Page 15: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/15.jpg)
Frontend
![Page 16: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/16.jpg)
Web appCodebase
![Page 17: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/17.jpg)
Data layer Interfaces
API
![Page 18: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/18.jpg)
js/css libs!build pipeline!data layer!deployments!testing
?
![Page 19: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/19.jpg)
• Wastes time!• Hard to share!• Slows down new devs
![Page 20: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/20.jpg)
Hampers growth
![Page 21: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/21.jpg)
Ember/CLIImprove!infrastructure!today
Discover!infrastructure!tomorrow
![Page 22: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/22.jpg)
Today
![Page 23: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/23.jpg)
Less boilerplate
![Page 24: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/24.jpg)
ember new serve test generate …
![Page 25: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/25.jpg)
Similar!directory structure
![Page 26: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/26.jpg)
Similar!architecture
![Page 27: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/27.jpg)
Consistent answers
![Page 28: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/28.jpg)
Conventionseliminate trivial differences
that hold us back
![Page 29: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/29.jpg)
Deploys
![Page 30: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/30.jpg)
ember build
![Page 31: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/31.jpg)
wrote a build script for CI
![Page 32: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/32.jpg)
Index JS CSS
![Page 33: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/33.jpg)
configure backends
![Page 34: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/34.jpg)
wrote an addon
![Page 35: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/35.jpg)
ember deploy
![Page 36: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/36.jpg)
Deploy Server
![Page 37: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/37.jpg)
1. manual!2. shared script!3. deploy addon!4. deploy server
![Page 38: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/38.jpg)
Testing
![Page 39: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/39.jpg)
ember test
![Page 40: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/40.jpg)
xhr intercpetor
![Page 41: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/41.jpg)
wrote an addon
![Page 42: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/42.jpg)
Server Client
![Page 43: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/43.jpg)
ember generate factory product
![Page 44: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/44.jpg)
1. manual!2. shared script!3. test addon!4. clientside server
![Page 45: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/45.jpg)
Redundancies
Abstractions
identify
and
![Page 46: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/46.jpg)
Tomorrow
![Page 47: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/47.jpg)
Staying up to date
![Page 48: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/48.jpg)
semver +!
CLI conventions
![Page 49: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/49.jpg)
Flexibility
![Page 50: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/50.jpg)
![Page 51: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/51.jpg)
![Page 52: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/52.jpg)
New standards and best practices
![Page 53: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/53.jpg)
best practices!standards
![Page 54: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/54.jpg)
Promises!Rendering layer!API standards!ES6 modules!CLI tools!FastBoot
![Page 55: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/55.jpg)
Closing
![Page 56: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/56.jpg)
![Page 57: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/57.jpg)
?
![Page 58: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/58.jpg)
Acme was right tostart with a monolith
![Page 59: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/59.jpg)
But they don’t what their apps will look
like in 5 years
![Page 60: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/60.jpg)
Ember is not just a frameworkIt’s a philosophy
![Page 61: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/61.jpg)
1. Give real devs the tools to tinker
![Page 62: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/62.jpg)
2. Deliberately fold in shared solutions
![Page 63: Frontend infrastructure (EmberConf 2015)](https://reader031.fdocuments.net/reader031/viewer/2022013003/55a600111a28ab6f3e8b4606/html5/thumbnails/63.jpg)
InnovateShare
&
@samselikoff