随笔分类 -  响应式编程

摘要:FRP represents an intersection of two programming paradigms. Functional programming Functional programming is a programming paradigm where you model e 阅读全文
posted @ 2019-10-12 19:25 zzfx 阅读(117) 评论(0) 推荐(0) 编辑
摘要:响应式编程是一种异步的、声名式的、面向数据流的编程范式。 异步:moand、observeable、handle; 声名式:用逻辑表述的形式组织代码;使用函数式编程范式。 数据流:将数据视作数据流的形式,并用pipeline的形式做处理。 rx是对响应式编程操作的标准化。 Each language 阅读全文
posted @ 2019-06-14 18:55 zzfx 阅读(317) 评论(0) 推荐(0) 编辑
摘要:While you can use any functional library, I personally prefer RxSwift because I have the most experience with it. However, there are many reactive lib 阅读全文
posted @ 2019-06-11 19:32 zzfx 阅读(250) 评论(0) 推荐(0) 编辑
摘要:Rx编程的第一步是将native对象转换为monad对象 将基础类型转换为高阶类型,以便使用函数式编程的特性。 阅读全文
posted @ 2019-03-06 16:17 zzfx 阅读(168) 评论(0) 推荐(0) 编辑
摘要:Reactive = Observables(响应)+ Schedulers(异步). Extensions = LINQ(语言集成查询) LINQ: The Operators of ReactiveX Operators By Category Creating Observables Oper 阅读全文
posted @ 2019-03-06 15:48 zzfx 阅读(290) 评论(0) 推荐(1) 编辑
摘要:Functional Reactive Programming (FRP) integrates time flow and compositional events into functional programming. This provides an elegant way to expre 阅读全文
posted @ 2019-01-17 15:58 zzfx 阅读(196) 评论(0) 推荐(0) 编辑
摘要:Programs take input and produce output. The output is the result of doing something with the input. Input, transform, output, done. This pattern is ea 阅读全文
posted @ 2019-01-17 15:05 zzfx 阅读(193) 评论(0) 推荐(0) 编辑
摘要:To put it another way, the output at any one time is the result of combining all inputs. The output is a function of all inputs up to that time. 摘要: 1 阅读全文
posted @ 2019-01-17 14:49 zzfx 阅读(246) 评论(0) 推荐(0) 编辑
摘要:【译】异步JavaScript的演变史:从回调到Promises再到Async/Await https://www.i-programmer.info/programming/theory/8864-managing-asynchronous-code-callbacks-promises-a-as 阅读全文
posted @ 2019-01-16 19:22 zzfx 阅读(266) 评论(0) 推荐(0) 编辑
摘要:ReactiveX is a library for composing asynchronous and event-based programs by using observable sequences. 问题:1、回调地狱;2、逻辑分散; 传统方案:回调; 改进方案:promise; 改进方 阅读全文
posted @ 2019-01-16 18:58 zzfx 阅读(1345) 评论(0) 推荐(0) 编辑
摘要:响应式编程是一种面向数据流和变化传播的编程范式; 响应式编程和函数式编程的融合; 响应式编程为内核;函数式编程为工具; 流的概念先天适合函数式编程。 Some quotes from the article: Reactive programming is programming with asyn 阅读全文
posted @ 2019-01-15 19:15 zzfx 阅读(383) 评论(0) 推荐(0) 编辑
摘要:ReactiveX Rx的Observable的本质就是一个Event Monad,即上下文(就是图文教程中包裹的盒子)为Event的一个Monad,这里的Event定义,可以对应语言的struct或者enum,包括了next、error和complete三个上下文即可。这里截取的是Swift语言的 阅读全文
posted @ 2019-01-11 19:21 zzfx 阅读(452) 评论(0) 推荐(0) 编辑
摘要:响应式编程是一种面向数据流和变化传播的编程范式 https://www.cnblogs.com/feng9exe/p/9019773.html https://www.cnblogs.com/feng9exe/p/8602889.html 阅读全文
posted @ 2018-11-28 11:56 zzfx 阅读(215) 评论(0) 推荐(0) 编辑
摘要:函数式编程由回掉函数指针衍生; 响应式编程基础是关联操作的封装; 链式编程每一次操作的结果返回一个结构体。 阅读全文
posted @ 2018-05-17 10:47 zzfx 阅读(738) 评论(0) 推荐(0) 编辑
摘要:开启RxSwift之旅——开篇 RxSwift 是 ReactiveX 在 Swift 下的实现。ReactiveX 是一个通过使用可观察序列来组合异步和基于事件的程序的库。 很多地方通常把 ReactiveX 称为 “函数响应式编程” ,其实这是不恰当的。ReactiveX 可以是函数式的,可以是 阅读全文
posted @ 2018-05-10 15:12 zzfx 阅读(278) 评论(0) 推荐(0) 编辑
摘要:The Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operator 阅读全文
posted @ 2018-05-08 14:50 zzfx 阅读(467) 评论(0) 推荐(0) 编辑
摘要:http://reactivex.io The real power comes with the “reactive extensions” (hence “ReactiveX”) — operators that allow you to transform, combine, manipula 阅读全文
posted @ 2018-05-07 19:55 zzfx 阅读(165) 评论(0) 推荐(0) 编辑
摘要:http://reactivex.io The Observer pattern done right ReactiveX is a combination of the best ideas from the Observer pattern, the Iterator pattern, and 阅读全文
posted @ 2018-05-07 19:44 zzfx 阅读(158) 评论(0) 推荐(0) 编辑
摘要:响应式编程关注变化的传播机制。它有三个关键词:变化、传播、机制。 响应式编程的源是个流; 响应式编程的源需要提供observable功能和响应链管理功能。 响应式编程的机制实际上是一个耦合和抽象的机制; 即事件和信息的源怎么与observer建立联系。 通常这个联系需要从两个方面考察: 1、联系的建 阅读全文
posted @ 2018-03-30 10:56 zzfx 阅读(236) 评论(0) 推荐(0) 编辑
摘要:The Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operator 阅读全文
posted @ 2018-03-29 16:11 zzfx 阅读(265) 评论(0) 推荐(0) 编辑