- Node.js Design Patterns
- Mario Casciaro
- 219字
- 2021-08-06 19:45:31
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "We can include other contexts through the use of the include
directive."
A block of code is set as follows:
var zmq = require('zmq') var sink = zmq.socket('pull'); sink.bindSync("tcp://*:5001"); sink.on('message', function(buffer) { console.log('Message from worker: ', buffer.toString()); });
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
function produce() { [...] variationsStream(alphabet, maxLength) .on('data', function(combination) { [...] var msg = {searchHash: searchHash, variations: batch}; channel.sendToQueue('jobs_queue', new Buffer(JSON.stringify(msg))); [...] } }) [...] }
Any command-line input or output is written as follows:
node replier node requestor
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "To explain the problem, we will create a little web spider, a command-line application that takes in a web URL as the input and downloads its contents locally into a file."
- Spring Boot 2實戰之旅
- Python概率統計
- ReSharper Essentials
- Getting Started with PowerShell
- Java:Data Science Made Easy
- JavaCAPS基礎、應用與案例
- 0 bug:C/C++商用工程之道
- R用戶Python學習指南:數據科學方法
- 從Power BI到Analysis Services:企業級數據分析實戰
- 石墨烯改性塑料
- Tableau Desktop可視化高級應用
- 例說FPGA:可直接用于工程項目的第一手經驗
- LabVIEW入門與實戰開發100例(第4版)
- 每個人的Python:數學、算法和游戲編程訓練營
- Python編程:從入門到實踐(第2版)