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

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.

主站蜘蛛池模板: 六安市| 进贤县| 平塘县| 西峡县| 林州市| 洪湖市| 乳源| 克东县| 宝清县| 石河子市| 兴山县| 湘潭县| 乌鲁木齐县| 光泽县| 稷山县| 上饶县| 石河子市| 温州市| 黄浦区| 伊宁县| 疏勒县| 阜阳市| 汉寿县| 沂南县| 丰原市| 昭平县| 维西| 北海市| 阿瓦提县| 普洱| 湘阴县| 江孜县| 安福县| 宁津县| 竹溪县| 遂昌县| 墨竹工卡县| 会泽县| 会东县| 商都县| 沙河市|