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

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.

主站蜘蛛池模板: 绩溪县| 宿迁市| 桐乡市| 常德市| 宜城市| 龙南县| 兴隆县| 利川市| 铜陵市| 阿坝| 柞水县| 平原县| 高邑县| 沙坪坝区| 南京市| 巧家县| 扎赉特旗| 贵阳市| 东海县| 青岛市| 新宾| 密山市| 龙门县| 江孜县| 娄烦县| 进贤县| 隆回县| 雅安市| 仁寿县| 观塘区| 锦州市| 北票市| 临漳县| 历史| 斗六市| 墨竹工卡县| 吴旗县| 峨边| 恩施市| 镇江市| 山丹县|