ABOUT THIS BOOK
xix
Node.js’s purpose and function. Then chapters 2 through 8 each cover in depth a dif-
ferent core aspect of Node from buffers to streams, networking to child processes.
Part 2 focuses on real-world development recipes. Chapters 9 through 12 will help
you master four highly applicable skills—testing, web development, debugging, and
running Node in production. In addition to Node core modules, these sections
include the use of various third-party modules.
Part 3 guides you through creating your own Node modules in a straightforward
manner that ties in all kinds of ways to use npm commands for packaging, running,
testing, benchmarking, and sharing modules. It also includes helpful tips on version-
ing projects effectively.
There are 115 techniques in the book, each module covering a specific Node.js
topic or task, and each divided into practical Problem/Solution/Discussion sections.
Code conventions and downloads
All source code in the book is in a
fixed-width
font
like
this
, which sets it off from
the surrounding text. In many listings, the code is annotated to point out the key con-
cepts, and numbered bullets are sometimes used in the text to provide additional
information about the code.
This book’s coding style is based on the Google JavaScript Style Guide.
1
That
means we’ve put
var
statements on their own lines, used
camelCase
to format func-
tion and variable names, and we always use semicolons. Our style is a composite of the
various JavaScript styles used in the Node community.
Most of the code shown in the book can be found in various forms in the sample
source code that accompanies it. The sample code can be downloaded free of charge
from the Manning website at www.manning.com/Node.jsinPractice, as well as from
GitHub at the following link: https://github.com/alexyoung/nodeinpractice.
Author Online forum
Purchase of Node.js in Practice includes free access to a private web forum run by Man-
ning Publications where you can make comments about the book, ask technical ques-
tions, and receive help from the authors and from other users. To access the forum
and subscribe to it, point your web browser to www.manning.com/Node.jsinPractice.
This page provides information on how to get on the forum once you’re registered,
what kind of help is available, and the rules of conduct on the forum.
The Author Online forum and the archives of previous discussions will be accessi-
ble from the publisher’s website as long as the book is in print.
You can also contact the authors at the following Google Group
URL: https://
groups.google.com/forum/#!forum/nodejsinpractice.
1
https://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml
www.it-ebooks.info