rise of node(part i)
Post on 02-Nov-2014
2.272 Views
Preview:
DESCRIPTION
TRANSCRIPT
by goddyzhao
Rise of Nodefor node beginner
Part I
As a Front-End Engineer
Not Satisfied
To Be a Web Developer
Pick up a back-end language
Too Many Choices
Outline
A Short Story of Node
Non-Blocking with Single Thread
Resources of Learning Node
A Short Story of Node
Node’s goal is to provide an easy way
to build scalable network programs
Another Context for JavaScript
Library
Node Parts
Server-Side JS Environment
Core Library
net
os
fs
...
Platforms
Family Members
NPM
Connect
Express
—— Node Package Manager
—— Middleware for Node
—— Web Development Framework
Big Names
Big Names
Isaac Z. Schlueter TJ Holowaychuk Tim Caswell
Keynote of Node
“”
In Node, everything runs in parallel, except your code
HOW
Event Driven - Event Loop
I/O Operations
Internal
Your CodeSingle Thread
New Thread
fs.readFile('/etc/passwd', function (err, data) { if (err) throw err; console.log(2); console.log(data);});console.log(1);
Callback’s Everywhere
Resources
Node Beginner
How to Node
TJ’s Blog
Node Blog
Nodejitsu’s Blog
CnodeJS
My Blog(Fuck GFW First)
nodecastscn
Github
Quora
Thanks!
top related