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

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.

主站蜘蛛池模板: 囊谦县| 招远市| 文化| 景德镇市| 横峰县| 蒲江县| 绥中县| 濮阳市| 宁乡县| 错那县| 茌平县| 佛山市| 武夷山市| 邵阳市| 涪陵区| 宾阳县| 会理县| 宝兴县| 来凤县| 河西区| 阳新县| 台州市| 理塘县| 赣州市| 广安市| 盖州市| 信阳市| 古交市| 盈江县| 三河市| 社旗县| 偃师市| 雷山县| 竹溪县| 漳浦县| 诏安县| 福建省| 耿马| 澳门| 井研县| 鲁山县|