- The Node Craftsman Book
- Manuel Kiessling
- 143字
- 2021-07-02 23:36:51
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 forced to transcribe code from a book into the editor.
推薦閱讀
- 網絡操作系統:Windows Server 2003管理與應用
- 阿里云數字新基建系列:云原生操作系統Kubernetes
- Persistence in PHP with the Doctrine ORM
- WindowsServer2012Hyper-V虛擬化部署與管理指南
- Instant Handlebars.js
- Extending Bootstrap
- Windows Phone 8 Application Development Essentials
- 數據中心系統工程及應用
- Linux運維最佳實踐
- 蘋果OS X Mavericks 10.9應用大全
- Linux內核設計的藝術:圖解Linux操作系統架構設計與實現原理
- Linux服務器配置與管理
- Social Data Visualization with HTML5 and JavaScript
- Linux操作系統案例教程(第2版)
- 鴻蒙入門:HarmonyOS應用開發