万本电子书0元读

万本电子书0元读

顶部广告

Reactive Programming for .NET Developers电子书

售       价:¥

37人正在读 | 0人评论 9.8

作       者:Antonio Esposito,Michael Ciceri

出  版  社:Packt Publishing

出版时间:2016-07-01

字       数:177.7万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:此类商品不支持退换货,不支持下载打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Get up and running with reactive programming paradigms to build fast, concurrent, and powerful applications About This Book . Get to grips with the core design principles of reactive programming . Learn about Reactive Extensions for .NET through real-world examples . Improve your problem-solving ability by applying functional programming Who This Book Is For If you are a .NET developer who wants to implement all the reactive programming paradigm techniques to create better and more efficient code, then this is the book for you. No prior knowledge of reactive programming is expected. What You Will Learn . Create, manipulate, and aggregate sequences in a functional-way . Query observable data streams using standard LINQ query operators . Program reactive observers and observable collections with C# . Write concurrent programs with ease, scheduling actions on various workers . Debug, analyze, and instrument Rx functions . Integrate Rx with CLR events and custom scheduling . Learn Functional Reactive Programming with F# In Detail 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 challengesThen 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. Style and approach This is a concise reference manual for reactive programming with Rx for C# and F# using real-world, practical examples.
目录展开

Reactive Programming for .NET Developers

Reactive Programming for .NET Developers

Credits

About the Authors

About the Reviewer

www.PacktPub.com

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. First Steps Toward Reactive Programming

Programming paradigms

Dataflow programming

Statelessness

The data-driven approach

Data streams

Observer pattern

Functional programming

Reactive programming

Reactive manifesto

The programming experience

Change propagation and cancellation

Linguistic characteristics

Programming languages and frameworks

Reactive programming approaches

Further reading

Summary

2. Reactive Programming with C#

IObserver interface

IObservable interface

Subscription life cycle

Sourcing events

Filtering events

Correlating events

Sourcing from CLR streams

Sourcing from CLR enumerables

Changeable collections

Infinite collections

Summary

3. Reactive Extension Programming

Setting up Rx.NET

Marble diagrams

Subjects

ReplaySubject

BehaviorSubject

AsyncSubject

Custom subjects

Subject from IObservable/IObserver

Transforming operators

Delay

Map

Scan

Debounce

Amb

Combining operators

Combine latest

Concat

Merge

Sample

StartWith

Zip

Filtering operators

Filter

Distinct

DistinctUntilChanged

ElementAt

Skip

Take

Mathematical operators

Min/Max/Avg/Sum/Count

Logic operators

Every/Some/Includes

SequenceEqual

References

Summary

4. Observable Sequence Programming

Sequence creation basics

Empty/Never

Return

Throw

Create

Range

Generate

Time-based sequence creation

Interval

Timer

Timeout

TimeInterval/Timestamp

Sequence manipulation and filtering

Where

Join

If

TakeUntil/TakeWhile/SkipUntil/SkipWhile

TakeLast/SkipLast

Sequence partitioning

GroupBy

Aggregate

MaxBy/MinBy

Advanced operators

IgnoreElements

Repeat

Publish/Connect

RefCount

PublishLast

Replay

Multicast

Summary

5. Debugging Reactive Extensions

Tracing sequences

Materialize

Dematerialize

TimeInterval

Do

Inspecting sequences

Contains

Any

All

SequenceEqual

Exception handling

Catch

OnErrorResumeNext

Finally

Retry

Summary

6. CLR Integration and Scheduling

Sourcing from CLR events

FromEventPattern

FromEvent

ToEvent

Threading integration

Sourcing from a Task

Task cancellation

Scheduling

Default schedulers

SubscribeOn/ObserveOn

Injecting schedulers

Custom scheduling

Future scheduling

Virtual time

Testing schedulers

Historical records

Summary

7. Advanced Techniques

Designing a custom operator

Designing the AsObservable operator

Designing the AcceptObservableClient operator

Case study - writing a reactive socket server

Disposing Create<T>

Designing a custom provider

Designing a custom scheduler

Dealing with the scheduler state

Creating Pattern<T>

Implementing event sourcing with Rx

Creating and validating an invoice

Event sourcing an invoice creation

Creating Interactive Extensions (Ix) operators

Summary

8. F# and Functional Reactive Programming

F# - first time

Introduction to F# and FRP

The immutable and deduce type

Type inference

Functions as first class values

Using the Type function for object-oriented programming

Collection – The heart of F#

F# – how to use it

Pattern Matching and pipe forward

Pipeline and composition

Discriminated Unions and the Record type

Active Patterns

Asynchronous pattern in F#

The concept of asynchronous workflow

Asynchronous code and examples

Functional Reactive Programming

What is FRP and how is it represented?

Introduction to functional reactive programming

Collections and functions in a flow

FRP and its scenarios

Event data flow

Push and pull-based domains

Examples of scenarios with AsyncSeq

Summary

9. Advanced FRP and Best Practices

Discrete and continuous components

Discrete components

The discrete event example with the discriminated union

Continuous components

Changing continuous value and event stream

Hybrid system

Time flow and dynamic change

Time flow in asynchronous data flow

Using F# and collection function for dynamic changing

Even more on FRP and F#

Railway-oriented Programming

Making an Observable in FRP

Summary

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部