You are previewing Reactive Programming with RxJS.
O'Reilly logo
Reactive Programming with RxJS

Book Description

Reactive programming is revolutionary. It makes asynchronous programming clean, intuitive, and robust. Use the RxJS library to write complex programs in a simple way, unifying asynchronous mechanisms such as callbacks and promises into a powerful data type: the Observable. Learn to think about your programs as streams of data that you can transform by expressing what should happen, instead of having to painstakingly program how it should happen. Manage real-world concurrency and write complex flows of events in your applications with ease.

Table of Contents

  1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" class="toc-secnum">&#160;</span>AcknowledgmentsAcknowledgments
  2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" class="toc-secnum">&#160;</span>PrefacePreface
    1. New World, Old Methods
    2. What Is Reactive Programming?
    3. What Is RxJS?
    4. Who This Book Is For
    5. What’s in This Book
    6. Running the Code Examples
    7. Resources
    8. Download Sample Code
  3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" class="toc-secnum">1. </span>The Reactive WayThe Reactive Way
    1. What’s Reactive?
    2. Of Observers and Iterators
    3. The Rx Pattern and the Observable
    4. Creating Observables
    5. Wrapping Up
  4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" class="toc-secnum">2. </span>Deep in the SequenceDeep in the Sequence
    1. Visualizing Observables
    2. Basic Sequence Operators
    3. Canceling Sequences
    4. Handling Errors
    5. Making a Real-Time Earthquake Visualizer
    6. Ideas for Improvements
    7. Operator Rundown
    8. Wrapping Up
  5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" class="toc-secnum">3. </span>Building Concurrent ProgramsBuilding Concurrent Programs
    1. Purity and the Observable Pipeline
    2. RxJS’s Subject Class
    3. Spaceship Reactive!
    4. Ideas for Improvements
    5. Wrapping Up
  6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" class="toc-secnum">4. </span>Building a Complete Web ApplicationBuilding a Complete Web Application
    1. Building a Real-Time Earthquake Dashboard
    2. Adding a List of Earthquakes
    3. Getting Real-Time Updates from Twitter
    4. Ideas for Improvements
    5. Wrapping Up
  7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" class="toc-secnum">5. </span>Bending Time with SchedulersBending Time with Schedulers
    1. Using Schedulers
    2. Scheduling for Animations
    3. Testing with Schedulers
    4. Wrapping Up
  8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" class="toc-secnum">6. </span>Reactive Web Applications with Cycle.jsReactive Web Applications with Cycle.js
    1. Cycle.js
    2. Installing Cycle.js
    3. Our Project: Wikipedia Search
    4. Model-View-Intent
    5. Creating Reusable Widgets
    6. Ideas for Improvements
    7. Wrapping Up