Reactive Programming with RxJS: Untangle Your Asynchronous JavaScript Code (Paperback)
暫譯: 使用 RxJS 的反應式程式設計:解開你的非同步 JavaScript 代碼

Sergi Mansilla

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2015-12-19
  • 定價: $600
  • 售價: 8.8$528
  • 語言: 英文
  • 頁數: 144
  • 裝訂: Paperback
  • ISBN: 1680501291
  • ISBN-13: 9781680501292
  • 相關分類: JavaScript
  • 立即出貨 (庫存 < 4)

買這商品的人也買了...

相關主題

商品描述

Reactive programming is revolutionary. It makes asynchronous programming cleaner, intuitive, and robust. Discover how to use the RxJS library to write programs in a simpler way, unifying asynchronous mechanisms such as callbacks and promises into a single, powerful construct. 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. You'll be able to handle real-world concurrency and write complex flows of events in your applications with ease.

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.

What You Need:

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

商品描述(中文翻譯)

反應式編程是革命性的。它使非同步編程變得更乾淨、直觀且穩健。了解如何使用 RxJS 函式庫以更簡單的方式編寫程式,將回呼(callbacks)和承諾(promises)等非同步機制統一為一個強大的結構。學會將你的程式視為數據流,通過表達 應該 發生什麼來進行轉換,而不是費力地編程 如何 發生。你將能夠輕鬆處理現實世界中的併發性,並在應用程式中編寫複雜的事件流程。

使用 JavaScript 的反應式擴展(Reactive Extensions for JavaScript, RxJS)創建高度併發的應用程式,同時編寫更簡單的代碼,這是一組用於事件組合的函式庫。在 JavaScript 中編程現實世界的應用程式涉及大量的非同步事件——你可能會發現花在協調程式中的非同步代碼的時間比編寫實際功能的時間還要多。本書介紹了反應式編程的概念和工具,幫助你編寫更乾淨且更穩健的非同步程式。

了解可觀察序列(Observable sequences),這是一種統一的數據類型,用於編寫高度併發的代碼。發現排程器(Schedulers),並改變你應用程式中的時間概念,使非同步測試再次變得合理。在此過程中,你將看到針對瀏覽器和 Node.js 的現實世界範例,包括用 20 行代碼實現的實時地震可視化和一款瘋狂的射擊遊戲。你還將使用 Cycle.js——一個現代的、完全反應式的網頁框架——來創建全新類型的網頁應用程式。

在本書結束時,你將知道如何應用反應式編程來解決複雜問題,構建具有反應式用戶界面的高效程式,並以更聲明式的方式編寫代碼。

你需要的:

一個現代的網頁瀏覽器、已安裝在你電腦上的 Node.js,以及 RxJS JavaScript 函式庫。