Node.JS briefly introduced

1,534 views

Published on

Slides of Node presentation at Amadeus.

Published in: Technology
2 Comments
1 Like
Statistics
Notes
No Downloads
Views
Total views
1,534
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
22
Comments
2
Likes
1
Embeds 0
No embeds

No notes for slide

Node.JS briefly introduced

  1. 1. NodeJSbriefly introduced by Alexandre Lachèze
  2. 2. What’s NodeJS ?
  3. 3. What’s NodeJS ?
  4. 4. What’s JS ?
  5. 5. The world’s most misunderstood programminglanguage has become the world’s most popular programming language. – Douglas Crockford
  6. 6. What’s JS ?Programming language for browsers JS
  7. 7. What’s JS ?Programming language for browsers "Hello world".toUpperCase() .charAt(3);
  8. 8. What’s JS ?Programming language for browsers document.getElementById("content") .appendChild("<div>Hello</div>");
  9. 9. Prototypal Totally Event-driveninheritance asynchronous
  10. 10. Prototypal Totally Event-driveninheritance asynchronous Cat.prototype = { meow :function() { return this.name+" miaou."; } };
  11. 11. Prototypal Totally Event-driveninheritance asynchronous Dog.prototype = { meow : Cat.prototype.meow };
  12. 12. Prototypal Totally Event-driveninheritance asynchronous var result = db.query("select * from T"); //use result
  13. 13. Prototypal Totally Event-driveninheritance asynchronous $.ajax("/query.json", function(result) { //use result });
  14. 14. Prototypal Totally Event-driveninheritance asynchronous el.addEventListener("click", function(evt) { alert("you clicked me ?!"); });
  15. 15. JSbrowser-side
  16. 16. $>_ JS server-side
  17. 17. NodeThe API should be familiar to client-side JSprogrammers and old school UNIX hackers. – Ryan Dahl
  18. 18. NodeThe API should be familiar to client-side JSprogrammers and old school UNIX hackers. – Ryan Dahl
  19. 19. Node v0.8.7 started 2009
  20. 20. What’s inside ?
  21. 21. What’s inside ? V8 C/C++ .JS Chrome’s JS engine V8
  22. 22. What’s inside ? Vs.Event loop Multi-thread
  23. 23. What’s inside ?Event loop
  24. 24. What’s around ? npm
  25. 25. What’s around ? opensource community energy
  26. 26. Node for what ?real-time web extensive I/O applications applications
  27. 27. Why node ? fast scalable(presumed) (presumed)
  28. 28. LinkedIn
  29. 29. NodeTry it ! that’s just JS.
  30. 30. Modules npm Resources modules wiki express (web framework) connectMe Nginx socket.iogithub.com/alexstrat nginx architecture node-inspector Making applications scalable meteor (web framework)Node official with load balancingnodejs.org Why Events Are A Bad Idea (for LinkedInJoyent high-concurrency servers) How LinkedIn used Node.js and HTML5 to build a better, faster appAPIIntroduction to Node.js Javascript Blazing fast node.js: 10 performance tips from LinkedIn Mobilewith Ryan Dahl JS : The Worlds Most Misunderstood Programming Language, DouglasSlides from JSConf 2009 CrockfordSlides from JSConf 2010 JS : The Good Parts, Douglas Slides(benchmarks inside !) Crockford, OReilly thenounproject.com JS Patterns, Stoyan Stefanov, colourslovers.comV8 OReilly slideshare.net/EmilandDCcode.google.com/p/v8/ JS Garden Slide design for developpers, Zachdevelopers.google.com/v8 Details of the object model, MDN Holman

×