Date post: | 10-May-2015 |
Category: |
Technology |
Upload: | alexandre-lacheze |
View: | 1,267 times |
Download: | 0 times |
NodeJSbriefly introduced
by Alexandre Lachèze
What’s NodeJS ?
What’s NodeJS ?
What’s JS ?
The world’s most misunderstood programming language has become the world’s most popular
programming language.
– Douglas Crockford
Programming language for browsers
JS
What’s JS ?
"Hello world".toUpperCase() .charAt(3);
Programming language for browsers
What’s JS ?
document.getElementById("content") .appendChild("<div>Hello</div>");
Programming language for browsers
What’s JS ?
Prototypal inheritance
Totallyasynchronous
Event-driven
Prototypal inheritance
Totallyasynchronous
Event-driven
Cat.prototype = { meow :function() { return this.name+" miaou."; }};
Prototypal inheritance
Totallyasynchronous
Event-driven
Dog.prototype = { meow : Cat.prototype.meow};
Prototypal inheritance
Totallyasynchronous
Event-driven
var result = db.query("select * from T");//use result
Prototypal inheritance
Totallyasynchronous
Event-driven
$.ajax("/query.json", function(result) { //use result});
Prototypal inheritance
Totallyasynchronous
Event-driven
el.addEventListener("click", function(evt) { alert("you clicked me ?!");});
JS
browser-side
JS
$>_
server-side
Node
The API should be familiar to client-side JS programmers and old school UNIX hackers.
– Ryan Dahl
Node
The API should be familiar to client-side JS programmers and old school UNIX hackers.
– Ryan Dahl
Node
started 2009
v0.8.7
What’s inside ?
What’s inside ?
.JSV8
C/C++
Chrome’s JS engine V8
Vs.
Event loop Multi-thread
What’s inside ?
Event loop
What’s inside ?
What’s around ?
npm
What’s around ?
opensource communityenergy
Node for what ?
real-time web applications
extensive I/Oapplications
Why node ?
fast(presumed)
scalable(presumed)
Try it !that’s just JS.
Node
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