- 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.
- R語言數(shù)據(jù)可視化之美:專業(yè)圖表繪制指南
- Offer來了:Java面試核心知識(shí)點(diǎn)精講(原理篇)
- oreilly精品圖書:軟件開發(fā)者路線圖叢書(共8冊(cè))
- Windows Presentation Foundation Development Cookbook
- HTML5+CSS3網(wǎng)站設(shè)計(jì)教程
- ArcGIS By Example
- Hands-On Full Stack Development with Go
- 常用工具軟件立體化教程(微課版)
- Learning AngularJS for .NET Developers
- 深入淺出Python數(shù)據(jù)分析
- OpenCV Android開發(fā)實(shí)戰(zhàn)
- Raspberry Pi Blueprints
- JavaScript前端開發(fā)基礎(chǔ)教程
- Node.js進(jìn)階之路
- Java語言程序設(shè)計(jì)與實(shí)現(xiàn)(微課版)