RxJS in Action 无水印pdf

所需积分/C币:31 2017-10-06 07:14:55 15.53MB PDF

RxJS in Action 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
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 PO Box 761 Shelter island. NY11964 Emailorders@manning.com a2017 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 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 books 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 POBoⅹ761 Project editor: Janet Vail Shelter island. ny 11964 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 I UNDERSTANDING STREAMS I Thinking reactively 3 2 Reacting with Rxs 28 3 Core operators 61 4 It's about time you used rxs 85 PART 2 OBSERVABLES IN PRACTICE 119 567 Applied reactive streams 121 Coordinating business processes 151 Error handling with rx]s 182 PART 3 MASTERING RXS 209 8 Heating up observables 211 Toward testable, reactive programs 245 10 RxJS in the wild 271 contents foreword xiii preface xu acknowledgments xvii about this book xix about the authors xxiv about the cover xxv PART I UNDERSTANDING STREAMS..o9.1 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. 8 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 programs 21. Components of an Rx stream 23 1.5 Reactive and other programming paradigms 26 1.6 Summary 27 CONTENTS 2 Reacting with Ry/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 APl 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 83 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 interfaces 90 4.8 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 Rxs lll 4.6 Summary 116 CONTENTS PART 2 OBSERVABLES IN PRACTICE 0。0 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 185 5.3 Mastering asynchronous streams 141 5.4 Drag and drop with concatMap 146 5.5 Summary 150 6 Coordinating business brocesses 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 forkJoin 159 LimitationsofusingPromises162.combining parallel streams 163. More coordination with forky/oin 168 6. 8 Building a reactive database 170 Populating a database reactively 172. Writing bulk date1万5· Joining related database operations 177. Reactive databases 180 6.4 Summary 181 7 Error handling with RxS 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 198 Errors propagated downstream to observers 193 Catching and reacting to errors 195. Retrying failed

试读 127P RxJS in Action 无水印pdf

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

liuyuan114 高清无水印 不错不错

关注 私信 TA的资源

    RxJS in Action 无水印pdf 31积分/C币 立即下载
    RxJS in Action 无水印pdf第1页
    RxJS in Action 无水印pdf第2页
    RxJS in Action 无水印pdf第3页
    RxJS in Action 无水印pdf第4页
    RxJS in Action 无水印pdf第5页
    RxJS in Action 无水印pdf第6页
    RxJS in Action 无水印pdf第7页
    RxJS in Action 无水印pdf第8页
    RxJS in Action 无水印pdf第9页
    RxJS in Action 无水印pdf第10页
    RxJS in Action 无水印pdf第11页
    RxJS in Action 无水印pdf第12页
    RxJS in Action 无水印pdf第13页
    RxJS in Action 无水印pdf第14页
    RxJS in Action 无水印pdf第15页
    RxJS in Action 无水印pdf第16页
    RxJS in Action 无水印pdf第17页
    RxJS in Action 无水印pdf第18页
    RxJS in Action 无水印pdf第19页
    RxJS in Action 无水印pdf第20页


    31积分/C币 立即下载 >