rise of node(part i)
DESCRIPTION
Introduction of Node to node beginnerTRANSCRIPT
![Page 1: Rise of node(Part I)](https://reader035.vdocument.in/reader035/viewer/2022081716/545aefabb1af9fba5d8b5755/html5/thumbnails/1.jpg)
by goddyzhao
Rise of Nodefor node beginner
Part I
![Page 2: Rise of node(Part I)](https://reader035.vdocument.in/reader035/viewer/2022081716/545aefabb1af9fba5d8b5755/html5/thumbnails/2.jpg)
As a Front-End Engineer
Not Satisfied
![Page 3: Rise of node(Part I)](https://reader035.vdocument.in/reader035/viewer/2022081716/545aefabb1af9fba5d8b5755/html5/thumbnails/3.jpg)
To Be a Web Developer
Pick up a back-end language
![Page 4: Rise of node(Part I)](https://reader035.vdocument.in/reader035/viewer/2022081716/545aefabb1af9fba5d8b5755/html5/thumbnails/4.jpg)
Too Many Choices
![Page 5: Rise of node(Part I)](https://reader035.vdocument.in/reader035/viewer/2022081716/545aefabb1af9fba5d8b5755/html5/thumbnails/5.jpg)
![Page 6: Rise of node(Part I)](https://reader035.vdocument.in/reader035/viewer/2022081716/545aefabb1af9fba5d8b5755/html5/thumbnails/6.jpg)
Outline
A Short Story of Node
Non-Blocking with Single Thread
Resources of Learning Node
![Page 7: Rise of node(Part I)](https://reader035.vdocument.in/reader035/viewer/2022081716/545aefabb1af9fba5d8b5755/html5/thumbnails/7.jpg)
A Short Story of Node
Node’s goal is to provide an easy way
to build scalable network programs
Another Context for JavaScript
Library
![Page 8: Rise of node(Part I)](https://reader035.vdocument.in/reader035/viewer/2022081716/545aefabb1af9fba5d8b5755/html5/thumbnails/8.jpg)
Node Parts
Server-Side JS Environment
Core Library
net
os
fs
...
![Page 9: Rise of node(Part I)](https://reader035.vdocument.in/reader035/viewer/2022081716/545aefabb1af9fba5d8b5755/html5/thumbnails/9.jpg)
Platforms
![Page 10: Rise of node(Part I)](https://reader035.vdocument.in/reader035/viewer/2022081716/545aefabb1af9fba5d8b5755/html5/thumbnails/10.jpg)
Family Members
NPM
Connect
Express
—— Node Package Manager
—— Middleware for Node
—— Web Development Framework
![Page 11: Rise of node(Part I)](https://reader035.vdocument.in/reader035/viewer/2022081716/545aefabb1af9fba5d8b5755/html5/thumbnails/11.jpg)
Big Names
![Page 12: Rise of node(Part I)](https://reader035.vdocument.in/reader035/viewer/2022081716/545aefabb1af9fba5d8b5755/html5/thumbnails/12.jpg)
Big Names
Isaac Z. Schlueter TJ Holowaychuk Tim Caswell
![Page 13: Rise of node(Part I)](https://reader035.vdocument.in/reader035/viewer/2022081716/545aefabb1af9fba5d8b5755/html5/thumbnails/13.jpg)
Keynote of Node
“”
In Node, everything runs in parallel, except your code
![Page 14: Rise of node(Part I)](https://reader035.vdocument.in/reader035/viewer/2022081716/545aefabb1af9fba5d8b5755/html5/thumbnails/14.jpg)
HOW
![Page 15: Rise of node(Part I)](https://reader035.vdocument.in/reader035/viewer/2022081716/545aefabb1af9fba5d8b5755/html5/thumbnails/15.jpg)
Event Driven - Event Loop
I/O Operations
Internal
Your CodeSingle Thread
New Thread
![Page 16: Rise of node(Part I)](https://reader035.vdocument.in/reader035/viewer/2022081716/545aefabb1af9fba5d8b5755/html5/thumbnails/16.jpg)
fs.readFile('/etc/passwd', function (err, data) { if (err) throw err; console.log(2); console.log(data);});console.log(1);
Callback’s Everywhere
![Page 17: Rise of node(Part I)](https://reader035.vdocument.in/reader035/viewer/2022081716/545aefabb1af9fba5d8b5755/html5/thumbnails/17.jpg)
Resources
Node Beginner
How to Node
TJ’s Blog
Node Blog
Nodejitsu’s Blog
CnodeJS
My Blog(Fuck GFW First)
nodecastscn
Github
Quora
![Page 18: Rise of node(Part I)](https://reader035.vdocument.in/reader035/viewer/2022081716/545aefabb1af9fba5d8b5755/html5/thumbnails/18.jpg)
Thanks!