官术网_书友最值得收藏!

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "ES2015 introduces the let keyword to declare variables that respect the block scope."

A block of code is set as follows:

const zmq = require('zmq')
const sink = zmq.socket('pull');
sink.bindSync("tcp://*:5001");

sink.on('message', 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', combination => {
       //...
       const 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, for example, in menus or dialog boxes, 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."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 贵港市| 临沂市| 庆城县| 太康县| 治多县| 缙云县| 福建省| 菏泽市| 综艺| 阳信县| 开封县| 永川市| 鹤庆县| 平湖市| 克东县| 社会| 临泉县| 衡阳县| 高陵县| 合肥市| 峡江县| 宁蒗| 无极县| 明溪县| 奎屯市| 友谊县| 保定市| 威海市| 响水县| 行唐县| 阿坝| 麦盖提县| 开鲁县| 兴隆县| 阿尔山市| 舒城县| 内黄县| 平武县| 兴义市| 富蕴县| 内乡县|