the future of node

29
The Future of Node.js Sarunyhot Suvannachoti (Kao) Software Engineer @ jitta.com

Upload: sarunyhot-suwannachoti

Post on 03-Aug-2015

42 views

Category:

Technology


4 download

TRANSCRIPT

The Future of Node.js

Sarunyhot Suvannachoti (Kao) Software Engineer @ jitta.com

The Essence of Node

• JavaScript on the Server

• More than server-side JavaScript

• Fabulous framework

• Asynchronous programming

• Module-driven development

JavaScript on the Server

• Easy to learn

• Lets you unify your client/server logic

• Productivity

• Already in the Enterprise (Paypal, Netflix, Walmart)

Trending repositories on GitHub

Language Active RepositoriesJavaScript 323,938

Java 222,852

Python 164,852

CSS 164,585

PHP 132,848

Ruby 132,848

C++ 86,505

C 73,075

Shell 65,670

C# 56,062

Trending repositories on GitHub

More than server-side JavaScript

• Web server

• Robot controller (tessel.io)

• Command line application

• Proxy server

• Music machine

• Desktop application tooling: NW.js

Desktop Application (torrent)

Desktop Application (editor)

Desktop Application (music)

Desktop Application (game)

Fabulous framework

• Express

• Restify (for building REST APIs, automatic DTrace support)

• Hapi (configuration-centric framework)

• Sails (fast production-ready)

• Meteor (realtime application)

Asynchronous Programming

• Alternative programmer mindset

• API focus on callbacks, events and streams

• Single-threaded!

Asynchronous Programming• Promises

• function* add() { }

• async await (ES7)

Module-driven development

• npm

• Simplicity

• Decoupled and reusable coding

The state of the registry

• 1400MM package downloads last month

• 150,000 packages in the registry

• `Node` is moving faster than `Node.js`

Module-driven development

• npm focused on module-driven development

• ES6 Modules

• Module-driven development for the browser

• Browser tools: Browserify

Module-driven development for the browser

bower install moment --save npm install moment --save

The Future of Node: Node.js + io.js?

+

Fork of Node.js

+

Node.js Foundation

Fork of Node.js

+

Mapping the Future of Node

• Debugability

• Better streams

• ES6 and beyond

• Track stable V8 releases (StrongMode, SoundScript)

• Focus on async API

Summary

Question?

Thank you!!!