Reactive Programming with RxJS.pdf
Reactive Programming with RxJS
Contents
Acknowledgments . . . . . . . . . . . ix
Preface . . . . . . . . . . . . . . xi
1. The Reactive Way . . . . . . . . . . . . 1
What’s Reactive? 1
Of Observers and Iterators 6
The Rx Pattern and the Observable 9
Creating Observables 10
Wrapping Up 15
2. Deep in the Sequence . . . . . . . . . . 17
Visualizing Observables 17
Basic Sequence Operators 19
Canceling Sequences 24
Handling Errors 26
Making a Real-Time Earthquake Visualizer 29
Ideas for Improvements 36
Operator Rundown 36
Wrapping Up 38
3. Building Concurrent Programs . . . . . . . . 39
Purity and the Observable Pipeline 39
RxJS’s Subject Class 45
Spaceship Reactive! 50
Ideas for Improvements 68
Wrapping Up 68
4. Building a Complete Web Application . . . . . . 69
Building a Real-Time Earthquake Dashboard 69
Adding a List of Earthquakes 71
Getting Real-Time Updates from Twitter 82
Ideas for Improvements 88
Wrapping Up 88
5. Bending Time with Schedulers . . . . . . . . 89
Using Schedulers 89
Scheduling for Animations 95
Testing with Schedulers 97
Wrapping Up 101
6. Reactive Web Applications with Cycle.js . . . . . 103
Cycle.js 103
Installing Cycle.js 104
Our Project: Wikipedia Search 105
Model-View-Intent 112
Creating Reusable Widgets 115
Ideas for Improvements 118
Wrapping Up 118
Index . . . . . . . . . . . . . . 119
资源链接
标签
发布日期
2017-05-17
擦亮日期
2017-05-17