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

Rise of Node (Part I)

Goddy Zhao
November 10, 2011

Rise of Node (Part I)

Introduce node.js to node beginner

Goddy Zhao

November 10, 2011
Tweet

More Decks by Goddy Zhao

Other Decks in Technology

Transcript

  1. by goddyzhao
    Rise of Node
    for node beginner
    Part I

    View full-size slide

  2. As a Front-End Engineer
    Not
    Satisfied

    View full-size slide

  3. To Be a Web Developer
    Pick up a back-
    end language

    View full-size slide

  4. Too Many Choices

    View full-size slide

  5. Outline
    A Short Story of Node
    Non-Blocking with Single Thread
    Resources of Learning Node

    View full-size slide

  6. A Short Story of Node
    Node’s goal is to provide an easy way
    to build scalable network programs
    Another Context for
    JavaScript
    Library

    View full-size slide

  7. Node Parts
    Server-Side JS
    Environment
    Core
    Library
    net
    os
    fs
    ...

    View full-size slide

  8. Family Members
    NPM
    Connect
    Express
    —— Node Package Manager
    —— Middleware for Node
    —— Web Development Framework

    View full-size slide

  9. Big Names
    Isaac Z. Schlueter TJ Holowaychuk Tim Caswell

    View full-size slide

  10. Keynote of Node


    In Node, everything runs in
    parallel, except your code

    View full-size slide

  11. Event Driven - Event Loop
    I/O Operations
    Internal
    Your Code
    Single Thread
    New Thread

    View full-size slide

  12. fs.readFile('/etc/passwd', function (err,
    data) {
    if (err) throw err;
    console.log(2);
    console.log(data);
    });
    console.log(1);
    Callback’s Everywhere

    View full-size slide

  13. Resources
    Node Beginner
    How to Node
    TJ’s Blog
    Node Blog
    Nodejitsu’s Blog
    CnodeJS
    My Blog(Fuck GFW First)
    nodecastscn
    Github
    Quora

    View full-size slide