+ All Categories
Home > Technology > Node.JS briefly introduced

Node.JS briefly introduced

Date post: 10-May-2015
Category:
Upload: alexandre-lacheze
View: 1,267 times
Download: 0 times
Share this document with a friend
Description:
Slides of Node presentation at Amadeus.
Popular Tags:
30
NodeJS briefly introduced by Alexandre Lachèze
Transcript
Page 1: Node.JS briefly introduced

NodeJSbriefly introduced

by Alexandre Lachèze

Page 2: Node.JS briefly introduced

What’s NodeJS ?

Page 3: Node.JS briefly introduced

What’s NodeJS ?

Page 4: Node.JS briefly introduced

What’s JS ?

Page 5: Node.JS briefly introduced

The world’s most misunderstood programming language has become the world’s most popular

programming language.

– Douglas Crockford

Page 6: Node.JS briefly introduced

Programming language for browsers

JS

What’s JS ?

Page 7: Node.JS briefly introduced

"Hello world".toUpperCase() .charAt(3);

Programming language for browsers

What’s JS ?

Page 8: Node.JS briefly introduced

document.getElementById("content") .appendChild("<div>Hello</div>");

Programming language for browsers

What’s JS ?

Page 9: Node.JS briefly introduced

Prototypal inheritance

Totallyasynchronous

Event-driven

Page 10: Node.JS briefly introduced

Prototypal inheritance

Totallyasynchronous

Event-driven

Cat.prototype = { meow :function() { return this.name+" miaou."; }};

Page 11: Node.JS briefly introduced

Prototypal inheritance

Totallyasynchronous

Event-driven

Dog.prototype = { meow : Cat.prototype.meow};

Page 12: Node.JS briefly introduced

Prototypal inheritance

Totallyasynchronous

Event-driven

var result = db.query("select * from T");//use result

Page 13: Node.JS briefly introduced

Prototypal inheritance

Totallyasynchronous

Event-driven

$.ajax("/query.json", function(result) { //use result});

Page 14: Node.JS briefly introduced

Prototypal inheritance

Totallyasynchronous

Event-driven

el.addEventListener("click", function(evt) { alert("you clicked me ?!");});

Page 15: Node.JS briefly introduced

JS

browser-side

Page 16: Node.JS briefly introduced

JS

$>_

server-side

Page 17: Node.JS briefly introduced

Node

The API should be familiar to client-side JS programmers and old school UNIX hackers.

– Ryan Dahl

Page 18: Node.JS briefly introduced

Node

The API should be familiar to client-side JS programmers and old school UNIX hackers.

– Ryan Dahl

Page 19: Node.JS briefly introduced

Node

started 2009

v0.8.7

Page 20: Node.JS briefly introduced

What’s inside ?

Page 21: Node.JS briefly introduced

What’s inside ?

.JSV8

C/C++

Chrome’s JS engine V8

Page 22: Node.JS briefly introduced

Vs.

Event loop Multi-thread

What’s inside ?

Page 23: Node.JS briefly introduced

Event loop

What’s inside ?

Page 24: Node.JS briefly introduced

What’s around ?

npm

Page 25: Node.JS briefly introduced

What’s around ?

opensource communityenergy

Page 26: Node.JS briefly introduced

Node for what ?

real-time web applications

extensive I/Oapplications

Page 27: Node.JS briefly introduced

Why node ?

fast(presumed)

scalable(presumed)

Page 28: Node.JS briefly introduced

LinkedIn

Page 29: Node.JS briefly introduced

Try it !that’s just JS.

Node

Page 30: Node.JS briefly introduced

Resources

Slidesthenounproject.com

colourslovers.com

slideshare.net/EmilandDC

Slide design for developpers, Zach Holman

LinkedInHow LinkedIn used Node.js and HTML5 to build a better, faster app

Blazing fast node.js: 10 performance tips from LinkedIn Mobile

JavascriptJS : The World's Most Misunderstood Programming Language, Douglas Crockford

JS : The Good Parts, Douglas Crockford, O'Reilly

JS Patterns, Stoyan Stefanov, O'Reilly

JS Garden

Details of the object model, MDN

Nginxnginx architecture

Making applications scalable with load balancing

Why Events Are A Bad Idea (for high-concurrency servers)

V8code.google.com/p/v8/

developers.google.com/v8

Modulesnpm

express (web framework)

connect

socket.io

node-inspector

modules wiki

meteor (web framework)

Node officialnodejs.org

Joyent

API

Introduction to Node.js with Ryan Dahl

Slides from JSConf 2010 (benchmarks inside !)

Slides from JSConf 2009

Megithub.com/alexstrat


Recommended