Tags
Language
Tags
April 2024
Su Mo Tu We Th Fr Sa
31 1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 1 2 3 4

Node Patterns: From Callbacks to Observer

Posted By: AlenMiler
Node Patterns: From Callbacks to Observer

Node Patterns: From Callbacks to Observer by Azat Mardan
English | 9 Jan. 2017 | ASIN: B01N7QXZWK | 24 Pages | EPUB/PDF (conv) | 362.64 KB

Node.js is a performant platform for web apps which is built on JavaScript—the most popular programming language in the world. If you aspire one day to become a Node.js architect (or maybe you’re already one and want to extend your knowledge), this presentation is for you, because we’ll talk about main Node patterns.

In this book, we will start with the basic: what is event loop and callback (setTimeout(), setImmediate() and process.nextTick()). Then we'll discuss the observer pattern with EventEmitter, the Middleware pattern and the Module patterns. Next you will learn how to hack object prototype and global refs. We will also discuss factory pattern and pseudo-classical inheritance. And lastly, we'll tackle Async patterns: Async, NeoAsync, async await, generators and Promises.