Javascript - The Stack and Beyond
-
Upload
all-things-open -
Category
Technology
-
view
149 -
download
3
Transcript of Javascript - The Stack and Beyond
![Page 1: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/1.jpg)
Adrian Pomilio / @adrianpomilio / www.pomil.io
JavaScriptthe
Stack
![Page 2: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/2.jpg)
![Page 3: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/3.jpg)
![Page 4: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/4.jpg)
![Page 5: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/5.jpg)
![Page 6: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/6.jpg)
JavaScript V8 Node
How we got to the stack…
![Page 7: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/7.jpg)
Engines
![Page 8: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/8.jpg)
SpiderMonkey
Chakra - JScript
Nashorn
JavaScriptCore
But there is one more…
Rhino
![Page 9: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/9.jpg)
https://code.google.com/p/v8/
![Page 10: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/10.jpg)
Fast Property Access
Dynamic Machine Code Generation
Efficient Garbage Collection
https://developers.google.com/v8/design
![Page 11: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/11.jpg)
Server? (aka not the browser)
![Page 12: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/12.jpg)
http://nodejs.org/
![Page 13: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/13.jpg)
https://npmjs.org/
![Page 14: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/14.jpg)
package.json
![Page 15: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/15.jpg)
Note on versioning
1 . 2 . 31 – Major Version
2 – Minor Version
3 – Patch Version
List your dependencies via: 1.2.x
http://blog.nodejitsu.com/package-dependencies-done-right
![Page 16: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/16.jpg)
“Abstraction is one of the greatest
visionary tools ever invented by human
beings to imagine, decipher, and depict
the world.” Jerry Saltz
![Page 17: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/17.jpg)
http://expressjs.com/
![Page 18: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/18.jpg)
Data
![Page 19: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/19.jpg)
![Page 20: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/20.jpg)
Workflows
![Page 21: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/21.jpg)
http://yeoman.io/
![Page 22: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/22.jpg)
“A workflow; a collection of tools and best
practices working in harmony to make
developing for the web even better.”
Grunt
Yo
Bower
![Page 23: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/23.jpg)
Task Runners
![Page 24: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/24.jpg)
Gruntfile.js – copy task
![Page 25: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/25.jpg)
gulpfile.js – copy task
![Page 26: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/26.jpg)
http://bower.io/
Client PackageManagement
![Page 27: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/27.jpg)
Bower is JUST a package manager
npm install –g bower
bower search …..
bower install …..
bower update …..
bower uninstall …..
bower ls / lookup / info / cache-clean
https://github.com/bower/bower
![Page 28: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/28.jpg)
Testing
![Page 29: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/29.jpg)
http://lm.eways.ph/5bm
Too huge for this preso!
http://jster.net/category/testing-frameworks
![Page 30: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/30.jpg)
Deployment
![Page 31: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/31.jpg)
![Page 32: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/32.jpg)
No disassemble! JavaScript is alive!
![Page 33: Javascript - The Stack and Beyond](https://reader031.fdocuments.us/reader031/viewer/2022032215/55a4fb081a28ab6a2e8b457a/html5/thumbnails/33.jpg)
http://nodecopter.com
https://github.com/rwaldron/johnny-five