Notes on code formatting

Please note that long lines in code examples may receive a line-break, denoted by the backslash sign \. Take care to put those lines into your editor as one line.

Take, for example, this code block:

dbSession.fetchAll('SELECT id, value, categoryID FROM keyword \
ORDER BY id', function(err, rows) {

The PDF version of this book shows a line break right after the keyword part, denoted by a \ after the keyword.

However, in your editor, you need to make sure that the whole code resides on one line.

Also, note that from what I can see, code blocks can not be copy-pasted from the PDF version of this book. While this might seem like a major annoyance, experience shows that learning to program works way better if one is ...

Get The Node Craftsman Book now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.