Slide 1

Slide 1 text

by goddyzhao Rise of Node for node beginner Part I

Slide 2

Slide 2 text

As a Front-End Engineer Not Satisfied

Slide 3

Slide 3 text

To Be a Web Developer Pick up a back- end language

Slide 4

Slide 4 text

Too Many Choices

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

Outline A Short Story of Node Non-Blocking with Single Thread Resources of Learning Node

Slide 7

Slide 7 text

A Short Story of Node Node’s goal is to provide an easy way to build scalable network programs Another Context for JavaScript Library

Slide 8

Slide 8 text

Node Parts Server-Side JS Environment Core Library net os fs ...

Slide 9

Slide 9 text

Platforms

Slide 10

Slide 10 text

Family Members NPM Connect Express —— Node Package Manager —— Middleware for Node —— Web Development Framework

Slide 11

Slide 11 text

Big Names

Slide 12

Slide 12 text

Big Names Isaac Z. Schlueter TJ Holowaychuk Tim Caswell

Slide 13

Slide 13 text

Keynote of Node “ ” In Node, everything runs in parallel, except your code

Slide 14

Slide 14 text

HOW

Slide 15

Slide 15 text

Event Driven - Event Loop I/O Operations Internal Your Code Single Thread New Thread

Slide 16

Slide 16 text

fs.readFile('/etc/passwd', function (err, data) { if (err) throw err; console.log(2); console.log(data); }); console.log(1); Callback’s Everywhere

Slide 17

Slide 17 text

Resources Node Beginner How to Node TJ’s Blog Node Blog Nodejitsu’s Blog CnodeJS My Blog(Fuck GFW First) nodecastscn Github Quora

Slide 18

Slide 18 text

Thanks!