- 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.
- Python程序設計教程(第2版)
- C# 7 and .NET Core Cookbook
- Flask Blueprints
- Building a RESTful Web Service with Spring
- Mastering Python Scripting for System Administrators
- Animate CC二維動畫設計與制作(微課版)
- The Computer Vision Workshop
- Scratch 3.0少兒編程與邏輯思維訓練
- Java軟件開發基礎
- Mastering Unity 2D Game Development(Second Edition)
- Solr Cookbook(Third Edition)
- C++反匯編與逆向分析技術揭秘(第2版)
- 編程可以很簡單
- Learning JavaScript Data Structures and Algorithms(Second Edition)
- 3ds Max印象 電視欄目包裝動畫與特效制作