the future of javascript
TRANSCRIPT
The Future of JavaScript
Node & JavaScript
=
Why is JavaScript
• Easy to learn
• Lets you unify your client/server logic
• Productivity
• Already in the Enterprise (Paypal, Netflix, Walmart)
More than web browsers• Web server
• Robot controller (tessel.io)
• Command line application
• Proxy server
• Desktop application tooling: NW.js, Electron
node-webkit
node-webkit
Electron
ECMAScript 2015 (ES6)
ECMAScript 2015
Arrow Functions
Template Literals(ES5)
Template Literals(ES6)
Default Parameters
Classes(ES5)
Classes(ES6)
Async/Await
ECMAScript 2015
• node --es_staging / --harmony
• node --harmony_destructuring
• Babel
WebAssembly• An improvement to JavaScript
• WebAssembly code defines an AST represented in a binary format
• A browser improvement: Browsers will understand the binary format
• A Compile Target: A way for other languages to get first-class binary support across the entire web platform stack
Isomorphic
• Uses the same language on both the client (web browser) and server
• You spend less time to write code on server and client. Then save time on testing
Isomorphic
NPM
Isomorphic
JS Preprocessors
TypeScript
JSX
CoffeeScript
JavaScript Tooling
JavaScript Tooling
JavaScript Tooling
JavaScript Tooling
JavaScript Tooling
• Dependence on plugin authors
• Frustrating debugging
• Disjointed documentation
What Should We Do?
• เลือก Framework ที่จะใช้
What Should We Do?
• เลือก Framework ที่จะใช้
• ใช้ JavaScript นอกจากเขียนเว็บบ้าง
What Should We Do?
• เลือก Framework ที่จะใช้
• ใช้ JavaScript นอกจากเขียนเว็บบ้าง
• เริ่มใช้ JavaScript ฝั่ง Server
What Should We Do?
• เลือก Framework ที่จะใช้
• ใช้ JavaScript นอกจากเขียนเว็บบ้าง
• เริ่มใช้ JavaScript ฝั่ง Server
• ศึกษา preprocessors JS และ Tooling ต่างๆ อยู่เสมอ
What Should We Do?• เลือก Framework ที่จะใช้
• ใช้ JavaScript นอกจากเขียนเว็บบ้าง
• เริ่มใช้ JavaScript ฝั่ง Server
• ศึกษา preprocessors JS และ Tooling ต่างๆ อยู่เสมอ
• เรียน JavaScript ใหม่
Thank you