Giter VIP home page Giter VIP logo

learningnodejs's Introduction

LearningNodeJS

Source code to accompany my book, "Learning Node.JS". Every once in a while, I'll update to the latest version of Node.JS and let everybody know if there are any changes or updates required to the code (and will make those changes in the source tree).

Errors and Corrections

As devastating as it is to admit, there are a couple of errors in the book. Those responsible for these egregious violations of editorial process (me) have been shot.

Chapter 6

p117. At the top of p117, you can change d.toString("utf8") to d

Or you could just replace the following:

if (d) {
    if (typeof d == 'string')
        res.write(d);
    else if (typeof d == 'object' && d instanceof Buffer)
        res.write(d.toString("utf8"));
}

with:

if (d) 
    res.write(d);

(note that all the other samples in this chapter got it right, just sample 2 has this)

p131. An incorrect URL is used. Please replace

http://localhost:8080/page/home

with

http://localhost:8080/pages/home

There are two places this happens (command line and browsers).

Chapter 8

p176. At the top of the page, the .sort("date") should read .sort(sort)

Chapter 11

p249. There are two lines of the format:

var data = process.stdXXX.read();

These should read:

var data = node.stdXXX.read();

learningnodejs's People

Contributors

marcwan avatar ptdecker avatar tmfelwu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.