RxJS in Action

所需积分/C币:9 2017-08-05 19:40:21 15.66MB PDF

RxJS in Action by Paul P. Daniels, Luis Atencio English | August 4th, 2017 | ISBN: 1617293415 | 354 pages | True PDF | 15.66 MB RxJS in Action gives you the development skills you need to create reactive applications with RxJS. This book is full of theory and practical examples that build on each o
Ras in action COVERS RXS 5 PAUL P, DANIELS LUIS ATENCIO FOREWORD BY BEN LESH MANNING SHELTER ISLAND For online information and ordering of this and other manning books, please visit www.manning.com.Thepublisheroffersdiscountsonthisbookwhenorderedinquantity For more information, please contact Special sales department Manning publications co 20 Baldwin Road POBoⅹ761 Shelter island. NY11964 Emailorders@manning.com @2017 by Manning Publications Co. All rights reserved No part of this publication may be reproduced, stored in a retrieval system, or transmitted,in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps o Recognizing the importance of preserving what has been written, it is Mannings policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end Recognizing also our responsibility to conserve the resources of our planet, Manning book are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine Manning publications Co Development editor: Frances Lefkowitz 20 Baldwin Road Technical development editor: Dean Iverson PO Box 761 Project editor: Janet Vail helter island. ny 1l964 Copyeditor: Linda recktenwald Proofreader: Katie Tennant Technical proofreader: Cody sand Typesetter: Dottie Marsico Cover designer: Marija Tudor ISBN9781617293412 Printed in the United states of america 12345678910-EBM-222120191817 brief contents PART 1 UNDERSTANDING STREAMS I Thinking reactively 3 1234 Reacting with rxs 28 Core operators 61 It's about time you used rx s 85 PART 2 OBSERVABLES IN PRACTICE 119 567 pplied reactive streams 121 Coordinating business processes 151 Error handling with rxs 182 PART 3 MASTERING RXS 209 Heating up observables 211 Toward testable, reactive programs 245 10 Rx」 S in the wild271 contents foreword xiii acknowledgments xvii about this book xix about the authors xxiv about the cover xxv PART 1 UNDERSTANDING STREAMS Thinking reactively 3 Synchronous vs asynchronous computing 5 Issues with blocking code 5. Non-blocking code with callback functions 6. Understanding time and space 7 Are callbacks out of the picture? 9. Event emitters 11 1.2 Better callbacks with Promises 12 1. 3 The need for a different paradigm 14 1.4 The Reactive Extensions for JavaScript 17 Thinking in streams: data flows and propagation 17 Introducing the rx s project 18. Everything is a stream 19 Abstracting the notion of time from your programs21.componentsofanrxstream23 1.5 Reactive and other programming paradigms 26 ummary CONTENTS 2 Reacting with R/S 28 2.1 Functional programming as the pillar of reactive programming 29 Functional programming 30. The iterator pattern 38 2.2 Streams data-driven approach 41 2.3 Wrapping data sources with Rx Observable 43 Identifying different sources of data 43- Creating Rx/s observables 44. When and where to use rx/s46 To push or not to push 49 2.4 Consuming data with observers 58 The Observer API 53- Creating bare observables 55 Observable modules 57 2.5 Summary 60 Core operators 61 3.1 Evaluating and cancelling streams 62 Downside of eager allocation 62: Lazy allocation and subscribing to observables 64. Disposing of subscriptions explicit cancellation 65 Cancellation mismatch between Rx S and other APIs 67 3.2 Popular rxs observable operators 69 Introducing the core operators 70 8.8 Sequencing operator pipelines with aggregates 77 Self-contained pipelines and referential transparency 77 Performance advantages of sequencing with Rx/s 80 3.4 Summary 88 4 It's about time you used Rx/s 85 4.1 Why worry about time? 87 4.2 Understanding asynchronous timing with JavaScript 88 Implicit timing 88. Explicit timing 88. The Javascript timing in g terraces 90 4.3 Back to the future with Rx s 94 Propagation 98. Sequential time 99 4.4 Handling user input 101 Debouncing 101. Throttling 108 4.5 Buffering in Rx]s 1ll 4.6 Summary 116 CONTENTS PART 2 OBSERVABLES IN PRACTICE 0000 n119 5 Applied reactive streams 121 5.1 One for all and all for one! 122 Interleave events by merging streams 124. Preserve order of events by concatenating streams 130. Switch to the latest observable data 133 5.2 Unwinding nested observables: the case of mergeMap 135 5.3 Mastering asynchronous streams 141 5. 4 Drag and drop with concatMap 146 5.5 Summary 150 6 Coordinating business processes 151 6.1 Hooking into the observable lifecycle 152 Web hooks and the observer pattern 153 Hooked on observables 154 6.2 Joining parallel streams with combinelatest and fork]oin 159 Limitations of using Promises 162. Combining parallel streams 163. More coordination with forkJoin 168 6. 8 Building a reactive database 170 Populating a database reactively 172. Writing bulk data 175. Joining related database operations 177- Reactive databases 180 6.4 Summary 181 Error handling with Rx/s 182 7.1 Common error-handling techniques 183 Error handling with try/catch 183. Delegating errors to callbacks 184. Errors and promises 186 7.2 Incompatibilities between imperative error-handling techniques and functional and reactive code bases 188 7. 3 Understanding the functional error-handling approach 189 7.4 The Rx] s way of dealing with failure 193 Errors propagated downstream to observers 193 Catching and reacting to errors 195. Retrying failed

...展开详情

评论 下载该资源后可以进行评论 5

lx三刀流 很不错的文档,学习了
2018-05-24
回复
psh2009 假的,没有下载链接
2017-12-20
回复
wxhdrn 很清晰,希望继续努力
2017-09-27
回复
yuhaozyx 文字版的,相当不错。
2017-08-23
回复
wjl1000801310 挺清晰,不错
2017-08-18
回复
img
DWcsdnNET

关注 私信 TA的资源

上传资源赚积分,得勋章
    最新推荐