- Node.js Design Patterns(Second Edition)
- Mario Casciaro Luciano Mammino
- 235字
- 2021-07-14 11:01:22
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.
- Docker and Kubernetes for Java Developers
- 數(shù)字媒體應(yīng)用教程
- Java程序設(shè)計實戰(zhàn)教程
- Visual C++串口通信開發(fā)入門與編程實踐
- Learning RabbitMQ
- Learning AndEngine
- Modern JavaScript Applications
- Python編程實戰(zhàn)
- OpenStack Orchestration
- Python3.5從零開始學(xué)
- 輕松上手2D游戲開發(fā):Unity入門
- Mastering Python Design Patterns
- Learning Nessus for Penetration Testing
- Flink技術(shù)內(nèi)幕:架構(gòu)設(shè)計與實現(xiàn)原理
- STM8實戰(zhàn)