Library Hours
Monday to Friday: 9 a.m. to 9 p.m.
Saturday: 9 a.m. to 5 p.m.
Sunday: 1 p.m. to 9 p.m.
Naper Blvd. 1 p.m. to 5 p.m.
     
Results Page:  Previous Next
Author Casciaro, Mario, author.

Title Node.js design patterns : get the best out of Node.js by mastering a series of patterns and techniques to create modular, scalable, and efficient applications / Mario Casciaro ; cover image by Artie Ng. [O'Reilly electronic resource]

Publication Info. Birmingham, England : Packt Publishing, 2014.
©2014
QR Code
Description 1 online resource (454 pages) : illustrations
text file
Series Community Experience Distilled
Community experience distilled.
Note Includes index.
Contents Cover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Node.js Design Fundamentals; The Node.js philosophy; Small core; Small modules; Small surface area; Simplicity and pragmatism; The reactor pattern; I/O is slow; Blocking I/O; Non-blocking I/O; Event demultiplexing; The reactor pattern; The non-blocking I/O engine of Node.js -- libuv; The recipe for Node.js; The callback pattern; The continuation-passing style; Synchronous continuation-passing style; Asynchronous continuation-passing style
Non continuation-passing style callbacksSynchronous or asynchronous?; An unpredictable function; Unleashing Zalgo; Using synchronous APIs; Deferred execution; Node.js callback conventions; Callbacks come last; Error comes first; Propagating errors; Uncaught exceptions; The module system and its patterns; The revealing module pattern; Node.js modules explained; A homemade module loader; Defining a module; Defining globals; module.exports vs exports; require is synchronous; The resolving algorithm; The module cache; Cycles; Module definition patterns; Named exports; Exporting a function
Exporting a constructorExporting an instance; Modifying other modules or the global scope; The observer pattern; The EventEmitter; Create and use an EventEmitter; Propagating errors; Make any object observable; Synchronous and asynchronous events; EventEmitter vs Callbacks; Combine callbacks and EventEmitter; Summary; Chapter 2: Asynchronous Control Flow Patterns; The difficulties of asynchronous programming; Creating a simple web spider; The callback hell; Using plain JavaScript; Callback discipline; Applying the callback discipline; Sequential execution
Executing a known set of tasks in sequenceSequential iteration; Parallel execution; Web spider version 3; The pattern; Fixing race conditions in the presence of concurrent tasks; Limited parallel execution; Limiting the concurrency; Globally limiting the concurrency; The async library; Sequential execution; Sequential execution of a known set of tasks; Sequential iteration; Parallel execution; Limited parallel execution; Promises; What is a promise?; Promises/A+ implementations; Promisifying a Node.js style function; Sequential execution; Sequential iteration
Sequential iteration -- the patternParallel execution; Limited parallel execution; Generators; The basics; A simple example; Generators as iterators; Passing values back to a generator; Asynchronous control flow with generators; Generator-based control flow using co; Sequential execution; Parallel execution; Limited parallel execution; Producer-consumer pattern; Limiting the download tasks concurrency; Comparison; Summary; Chapter 3: Coding with Streams; Discovering the importance of streams; Buffering vs Streaming; Spatial efficiency; Gzipping using a buffered API; Gzipping using streams
Summary If you're a JavaScript developer interested in a deeper understanding of how to create and design Node.js applications, this is the book for you.
Language English.
Subject JavaScript (Computer program language)
JavaScript (Langage de programmation)
JavaScript (Computer program language)
Added Author Ng, Artie, cover designer.
Other Form: Print version: Casciaro, Mario. Node.js design patterns : get the best out of Node.js by mastering a series of patterns and techniques to create modular, scalable, and efficient applications. Birmingham, England : Packt Publishing, ©2014 viii, 431 pages Community experience distilled. 9781783287314
ISBN 9781783287321 (e-book)
1783287322 (e-book)
1783287314
9781783287314
Patron reviews: add a review
Click for more information
EBOOK
No one has rated this material

You can...
Also...
- Find similar reads
- Add a review
- Sign-up for Newsletter
- Suggest a purchase
- Can't find what you want?
More Information