rise of node(part i)

Post on 02-Nov-2014

2.289 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Introduction of Node to node beginner

TRANSCRIPT

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

Thanks!

top related