Upgrade to Pro — share decks privately, control downloads, hide ads and more …

NodeJS, why?

NodeJS, why?

An introductory presentation about Node.js platform that I presented on JusBrasil TED Talks. In this presentation I explain Node.js to beginners, show how it works and why it should be used. I also show who are using it and where it have been used besides web servers.

Rafael Verger

April 18, 2014
Tweet

More Decks by Rafael Verger

Other Decks in Programming

Transcript

  1. How Node.js code looks like? var http = require('http'); http.createServer(function

    (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); }).listen(1337, '127.0.0.1'); console.log('Server running at http://127.0.0.1:1337/');
  2. Since Node.js use only 1 single thread/process, in a single

    core, if a tasks takes too long to complete, the whole app will be stuck... Bad stuff / CPU Intensive tasks :( But don't worry.. it's very easy to spawn a child process and let him do the job :)
  3. Goooood stuff :) - HUUUUGE Community! - Native and MANDATORY

    event driven programming - ES5 is all there - ES6 is almost done - Cross-platform (desktop, web, mobile, linux, windows, osx, one language to rule them all!! )
  4. Final review Event driven programming Async I/O Huge community One

    language to rule them all The best part of JavaScript Open source: https://github.com/joyent/node