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

Chapter 1. First Steps Toward Reactive Programming

Thanks for buying this guide to Reactive Programming and Reactive Extensions for .NET.

This book will give you an expert overview about the magical world of programming, also known as programming live data or real-time data, instead of programming static data as happens with any other usual programming paradigm.

Do you know Microsoft Excel?

Excel is a software that lets you write raw numbers and functions in a proprietary mathematical form or through a simple scripting programming language (VBA).

The magic happens when you write an Excel function, such as =A1+A2, which means that the current cell value will be the sum of the values contained in the A1 and A2 cells.

This simple function creates a subscription to the events of cells A1 and A2. This means that any time you update the value of any of these two cells, the function will return a new value. This is the simplest example of functional and reactive programming available.

Now that we have an idea of what reactive is, it is easy to explain that this book will guide developers with any background knowledge about reactive programming toward the understanding of the reactive programming paradigm with a lot of examples of using Reactive Extensions (Rx) for .NET.

This chapter will give an overview of what Reactive Programming (RP) is and how it works, starting with programming paradigms and later diving into the RP structure following the schema:

  • Programming paradigms

  • Dataflow programming

  • Functional programming

  • Reactive programming