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

Node.js: The Good Parts

Node.js: The Good Parts

There's a new kid in town.

Find out what's great about node and why it's so hot right now!

Presented at #convergese on 26 April 2013

Raquel Vélez

April 26, 2013
Tweet

More Decks by Raquel Vélez

Other Decks in Technology

Transcript

  1. Node.js: The Good Parts There's a new kid in town;

    time to say hello. Brought to you by @rockbot
  2. Node === Awesomesauce ◦ Quick ◦ Independent ◦ Familiar ◦

    Modular ◦ Plays well with others ◦ MVP of MVC ◦ Widely used ◦ Super easy to get started
  3. Everywhere You Want to Be It's just JavaScript! Easy context

    switching between front-end and backend
  4. Party with npm modules : node :: gems : ruby

    lots of small, modular packages that can be added to programs via require
  5. Use it Your Way Favorite DBs: ◦ MongoDB ◦ CouchDB

    ◦ MySQL ◦ and more! Preprocessors: ◦ Jade (HTML) ◦ Stylus (CSS) ◦ ERB ◦ Sass
  6. JIFASNIF JavaScript is fun and so node is fun! #nodejs

    IRC, Google Groups, GitHub, Twitter, Meetups, Conferences...!
  7. Basics: A Really Simple Web Server 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/');
  8. Basics: A Really Simple Web Server % npm install express

    % express projectName % cd projectName && npm install % node app.js Server running at http://localhost:3000
  9. node.js: The Less Good Parts ◦ "Pyramid of Doom" ◦

    Core keeps changing ◦ Too many options ◦ Overkill for static sites ◦ Scalability ◦ Memory leaks (closures) ◦ CoffeeScript, etc