上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 103 下一页
摘要: 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 阅读(203) 评论(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 阅读(272) 评论(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 阅读(274) 评论(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 阅读(1392) 评论(0) 推荐(0)
摘要: 响应式编程的三个层次: 1、将事件和数据抽象为流; 2、使用声明式(函数式)编程简化流的处理流程; 3、将各类输入(流)封装(抽象)为流的端口。 4、是交互式编程开发的利器; 1、基于事件和异步; 响应编程能够简化编程,它依赖于事件,代码运行的顺序不是代码行的顺序,而是和一个以上的事件有关,这些事件 阅读全文
posted @ 2019-01-16 18:39 zzfx 阅读(900) 评论(0) 推荐(0)
摘要: 三、既然是 non-fragile ivars,为什么 Category 不能增加成员变量? 看过一些资料,理由并不是很让人信服。我觉得并不是做不到,只是现在没有做,现在不支持。我在 Optimizing App Startup Time Video 中找到答案,我觉得是因为 Category re 阅读全文
posted @ 2019-01-16 16:25 zzfx 阅读(308) 评论(0) 推荐(0)
摘要: 共享可执行文件 iOS 有沙箱机制,不能跨App间共享共态库,但Apple开放了App Extension,可以在App和Extension间共间动态库(这也许是Apple开放动态链接库的唯一原因了)。 http://blog.lanvige.com/2015/01/04/library-vs-fr 阅读全文
posted @ 2019-01-16 16:13 zzfx 阅读(540) 评论(0) 推荐(0)
摘要: 鉴于目前动态库在iOS App中使用越来越广泛,二进制的兼容问题可能会成为一个令人头疼的问题。本文主要对比一下C++、Java、Objecive-C和Swift的二进制兼容问题。 iOS端动态库使用情况 测试环境 C++、Java、OC和Swift分别实现Foo这个基类,然后再实现Bar这个子类,m 阅读全文
posted @ 2019-01-16 15:25 zzfx 阅读(395) 评论(0) 推荐(0)
摘要: 1. 什么是二进制兼容 所谓“二进制兼容性”指的就是在升级(也可能是 bug fix)库文件的时候,不必重新编译使用这个库的可执行文件或使用这个库的其他库文件,程序的功能不被破坏 2. 二进制不兼容会造成什么后果 如果库A升级没有能够做到二进制兼容,那么所有依赖它的程序(或库)都需要重新编译,否则会 阅读全文
posted @ 2019-01-16 12:37 zzfx 阅读(409) 评论(0) 推荐(0)
摘要: Runtime Versions and Platforms There are different versions of the Objective-C runtime on different platforms. Legacy and Modern Versions There are tw 阅读全文
posted @ 2019-01-16 12:05 zzfx 阅读(234) 评论(0) 推荐(0)
摘要: 响应式编程是一种面向数据流和变化传播的编程范式; 响应式编程和函数式编程的融合; 响应式编程为内核;函数式编程为工具; 流的概念先天适合函数式编程。 Some quotes from the article: Reactive programming is programming with asyn 阅读全文
posted @ 2019-01-15 19:15 zzfx 阅读(399) 评论(0) 推荐(0)
摘要: 应用逻辑:连接视图与业务、串联业务、业务切换、业务管理; 2.业务逻辑分类: (1)应用逻辑。 (2)领域逻辑。 http://www.cnblogs.com/easygame/p/4339948.html https://github.com/DeclarativeHub/TheBinderArc 阅读全文
posted @ 2019-01-15 17:24 zzfx 阅读(1701) 评论(0) 推荐(0)
摘要: 绑定: UI控件 --> VM VM -> UI控件 关于mvvm:UI、数据、绑定、状态、中间变量、数据适配、数据处理; https://github.com/zzf073/LoginDemo_RxSwift。 用中间层管理复杂的UI事务、数据、状态等; 并进行相关的绑定。 阅读全文
posted @ 2019-01-14 17:27 zzfx 阅读(359) 评论(0) 推荐(0)
摘要: This section deals with more theoretical aspects of types. A type system is a set of rules used by a language to structure and organize its collection 阅读全文
posted @ 2019-01-12 14:56 zzfx 阅读(268) 评论(0) 推荐(0)
摘要: https://www.jianshu.com/p/fe53e5fe189d 阅读全文
posted @ 2019-01-11 19:34 zzfx 阅读(242) 评论(0) 推荐(0)
摘要: ReactiveX Rx的Observable的本质就是一个Event Monad,即上下文(就是图文教程中包裹的盒子)为Event的一个Monad,这里的Event定义,可以对应语言的struct或者enum,包括了next、error和complete三个上下文即可。这里截取的是Swift语言的 阅读全文
posted @ 2019-01-11 19:21 zzfx 阅读(470) 评论(0) 推荐(0)
摘要: 架构视图: 结构(形式)视图:分层、核心、总线、分布 功能视图:驱动、传动、控制、处理;输入、功能(环节)、输出; 开发视图:放那里 要素、结构、交互; 影响架构的因素: 数据、时间、系统的目的性(多目的)、系统的核心(数据?)、系统的功能(多功能?) 一个系统可能可以被分解为很多子系统,每一个子系 阅读全文
posted @ 2019-01-11 17:31 zzfx 阅读(370) 评论(0) 推荐(0)
摘要: MVC(Model-View-Controller),它是专门针 对交互系统提出的,所以如果我们要构建一个交互系统,那么我们就可以直接应用MVC模式,然后 在该模式所搭建的场景的启发下去发现Model、View以及Controller,在这个大的场景的指导下根 据其它的需求(模式)构建一些小的场景对 阅读全文
posted @ 2019-01-11 15:33 zzfx 阅读(174) 评论(0) 推荐(0)
摘要: Architecture pattern: context + problem -> solution Architecture style: solution part of architecture pattern So architecture style is analogous to th 阅读全文
posted @ 2019-01-11 14:52 zzfx 阅读(374) 评论(0) 推荐(0)
摘要: Software Architecture Architecture serves as a blueprint for a system. It provides an abstraction to manage the system complexity and establish a comm 阅读全文
posted @ 2019-01-10 20:05 zzfx 阅读(429) 评论(0) 推荐(0)
上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 103 下一页