Book Image

Reactive Programming for .NET Developers

Book Image

Reactive Programming for .NET Developers

Overview of this book

Reactive programming is an innovative programming paradigm focused on time-based problem solving. It makes your programs better-performing, easier to scale, and more reliable. Want to create fast-running applications to handle complex logics and huge datasets for financial and big-data challenges? Then you have picked up the right book! Starting with the principles of reactive programming and unveiling the power of the pull-programming world, this book is your one-stop solution to get a deep practical understanding of reactive programming techniques. You will gradually learn all about reactive extensions, programming, testing, and debugging observable sequence, and integrating events from CLR data-at-rest or events. Finally, you will dive into advanced techniques such as manipulating time in data-flow, customizing operators and providers, and exploring functional reactive programming. By the end of the book, you'll know how to apply reactive programming to solve complex problems and build efficient programs with reactive user interfaces.
Table of Contents (15 chapters)
Reactive Programming for .NET Developers
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface

Logic operators


Logic operators deal with Boolean results, giving the programmer the ability to take decisions on sequence values in a reactive way by producing other sequences. They are the respective of LINQAny, All, and similar operators.

Every/Some/Includes

All these operators produce a new sequence containing a single message that will contain a result of a Boolean question.

The Every operator is the reactive version of the LINQ All operator, returning if all the elements of a sequence comply with a specified statement.

The Some operator is the reactive version of the LINQ Any operator, returning if any element in a sequence complies with a specified statement.

The Includes operator is the reactive version of the LINQ Contains operator, returning if any element in the sequence is the one specified.

Boolean operators, similar to mathematical ones, need the source sequence complete before flowing their response messages.

Here's an example:

var s17 = new Subject<double>(); 
var every...