forked from Chinamobo/iOS-Project-Template
-
Notifications
You must be signed in to change notification settings - Fork 13
其他讨论
BB9z edited this page Aug 15, 2020
·
1 revision
// todo
从最早的 ReactiveCocoa,到后来的 RxSwift,再到官方的 Combine framework 及 SwiftUI 的推出,Functional Reactive Programming(以下简称 FRP)将会得到越来越多的使用。
很长时间我对 FRP 都没什么兴趣,评估后认为收益不够。一方面,简单的场景已有的工具已足够好用,复杂的场景调试比较难,和 NSNotification 类似,堆栈信息都丢失了。另一方面,团队推广的学习、规范,架构上的调整,成本有点高。
随着官方工具的推出,FRP 最大的调试痛点得到一定的缓解,参考 Combine debugging using operators,还有像 Timelane 这样的三方工具。