Node.js Lightning Talk
Upcoming SlideShare
Loading in...5
×
 

Node.js Lightning Talk

on

  • 1,562 views

Node.js Lightning Talk (short limited to 15 minutes with discussion afterwards).

Node.js Lightning Talk (short limited to 15 minutes with discussion afterwards).

Statistics

Views

Total Views
1,562
Views on SlideShare
1,428
Embed Views
134

Actions

Likes
1
Downloads
12
Comments
0

7 Embeds 134

http://yobriefca.se 61
http://yobriefcase.posterous.com 60
http://kouphax.github.com 4
http://localhost 4
http://paper.li 3
http://webcache.googleusercontent.com 1
http://web.archive.org 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Node.js Lightning Talk Node.js Lightning Talk Presentation Transcript

  • Evented JavaScript for the Server
    Lightning Talk
  • Doing web development with anything not called node.js feels like going back home to the midwest and being force-fed trans fats.
    @hipsterhacker
  • node.js 101
    JavaScript based I/O Framework
    Built on Google’s V8 JavaScript Engine
    Air thin bindings to low level C libraries
    Evented & Non blocking
    Single threaded
    Everything is asynchronous
    Scalable & Less memory hungry
  • var results =db.query("select * from Table");
    for(var i =0; i <results.length; i++){
    // write result
    }
    // do some other stuff
  • var results =db.query("select * from Table");
    // WASTED CYCLES! WASTED CYCLES!
    for(var i =0; i <results.length; i++){
    // write result
    }
    // do some other stuff
  • db.query("select * from Table",function(results){
    for(var i =0; i <results.length; i++){
    // write result
    }
    });
    // do some other stuff
  • The Event Loop
  • var http = require('http');
    http.createServer(function (req, res) {
    // respond to request
    res.writeHead(200, {'Content-Type':'text/plain'});
    res.end('Hello Worldn');
    }).listen(8124);
    console.log('Server running at http://127.0.0.1:8124/');
    // # node example.js
    // Server running at http://127.0.0.1:8124/
    Anatomy of an App
  • The Good Stuff
    It’s fast, scalable and lightweight
    Conceptually easier to grasp
    Large, active enthusiastic community
    Technologies covering all project needs
    NPM (Node Package Manager)
    Express (Web Framework)
    Connect (Middleware Layer)
    Vows, Docco, Jake, and many more.
  • The Not So Good Stuff
    Asynchronous code can get messy
    Its evolving fast and changing constantly
    Production ready concerns
    It’s JavaScript, it’s dynamic
    Debugging isn’t easy
    IDEs aren’t that helpful
    People are afraid of JavaScript
    Currently requires POSIX based systems
    Some Windows support (unstable)
  • The Rest
    Node.js isn’t doing anything “new”
    It’s not just about the web stuff
    Node.js isn’t the first or only SSJS framework
    Narwhal
    Ringo.js
    Rhino
    JScript
  • </presentation>