- 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.
- 數(shù)據(jù)庫(kù)系統(tǒng)原理及MySQL應(yīng)用教程(第2版)
- Puppet 4 Essentials(Second Edition)
- Java面向?qū)ο笏枷肱c程序設(shè)計(jì)
- DevOps入門(mén)與實(shí)踐
- 深入RabbitMQ
- 微信小程序項(xiàng)目開(kāi)發(fā)實(shí)戰(zhàn)
- 第一行代碼 C語(yǔ)言(視頻講解版)
- 移動(dòng)互聯(lián)網(wǎng)軟件開(kāi)發(fā)實(shí)驗(yàn)指導(dǎo)
- Laravel Application Development Blueprints
- Distributed Computing in Java 9
- Get Your Hands Dirty on Clean Architecture
- Flask開(kāi)發(fā)Web搜索引擎入門(mén)與實(shí)戰(zhàn)
- 前端架構(gòu)設(shè)計(jì)
- Kohana 3.0 Beginner's Guide
- 川哥教你Spring Boot 2實(shí)戰(zhàn)