small medium large xlarge

Reactive Programming with RxJS: Untangle Your Asynchronous JavaScript Code

by

Cover image for Reactive Programming with RxJS

Reactive Programming with RxJS

by

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.

Choose Your Format(s)

  • $23.00 In Stock

    Save $7.00 on the combo pack.

  • $18.00 In Stock
  • $12.00 In Stock
  • Ebooks are DRM free.

  • Ebook delivery options.

About this Title

Pages: 142
Published: 2015-12-11
Release: P2.0 (2016-08-08)
ISBN: 978-1-68050-129-2

Create highly concurrent applications while writing simpler code using the Reactive Extensions for JavaScript (RxJS), a set of libraries for event composition. Programming real-world applications in JavaScript involves lots of asynchronous events—you might end up spending more time coordinating asynchronous code in your program than writing its actual functionality. This book introduces concepts and tools from reactive programming that will help you write cleaner and more robust asynchronous programs.

Find out about Observable sequences, a unifying data type to write highly concurrent code. Discover Schedulers and change the concept of time in your applications, making asynchronous testing sane again. Along the way you’ll see real-world examples for the browser and Node.js, including a real-time earthquake visualization in 20 lines of code and a frantic shoot-’em-up space videogame. You’ll also use Cycle.js – a modern, fully reactive web framework – to make a whole new breed of web applications.

By the end of the book, you’ll know how to apply reactive programming to solve complex problems, build efficient programs with reactive user interfaces, and write your code more declaratively.

Read the reviews .

What You Need

A modern web browser, Node.JS installed in your computer, and the RxJS JavaScript library.

Contents & Extracts

  • Preface
    • New World, Old Methods
    • What Is Reactive Programming?
    • What is RxJS?
    • Who This Book Is For
    • What’s In This Book
    • Running the Code Examples
    • Resources
    • Download Sample Code
  • The Reactive Way excerpt
    • What’s Reactive?
    • Of Observers and Iterators
    • The Rx Pattern and the Observable
    • Creating Observables
    • Wrapping Up
  • Deep in the Sequence
    • Visualizing Observables
    • Basic Sequence Operators
    • Canceling Sequences
    • Handling Errors
    • Making a Real-Time Earthquake Visualizer
    • Ideas for Improvements
    • Operator Rundown
    • Wrapping Up
  • Building Concurrent Programs
    • Purity and the Observable Pipeline
    • RxJS’s Subject Class excerpt
    • Spaceship Reactive!
    • Ideas for Improvements
    • Wrapping Up
  • Building a Complete Web Application
    • Building a Real-Time Earthquake Dashboard
    • Adding a List of Earthquakes
    • Getting Real-Time Updates from Twitter
    • Ideas for Improvements
    • Wrapping Up
  • Bending Time with Schedulers excerpt
    • Using Schedulers
    • Scheduling for Animations
    • Testing with Schedulers
    • Wrapping Up
  • Reactive Web Applications with Cycle.js
    • Cycle.js
    • Installing Cycle.js
    • Our Project: Wikipedia Search
    • Model-View-Intent
    • Creating Reusable Widgets
    • Ideas for Improvements
    • Wrapping Up

Author

Sergi Mansilla is a professional developer with more than 15 years of experience who believes that software can change the world for the better. He’s currently working on Firefox OS, a new mobile OS based on the web. Sergi speaks at conferences all around the world, and lives in Amsterdam with his lovely wife.