- 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.
推薦閱讀
- Learning OpenDaylight
- Windows Server 2019 Cookbook
- Mastering vRealize Operations Manager(Second Edition)
- Containerization with LXC
- 每天5分鐘玩轉Kubernetes
- UNIX操作系統設計
- FreeRTOS實時內核應用指南
- SOA實踐者說
- 精解Windows 8
- AWS Development Essentials
- Advanced TypeScript Programming Projects
- 計算機系統的自主設計
- Cassandra 3.x High Availability(Second Edition)
- 從實踐中學習Windows滲透測試
- Linux 從入門到項目實踐(超值版)