Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

读『优秀的 iOS 应用架构:MVVM、MVC、VIPER,孰优孰劣?』 #9

Open
ShannonChenCHN opened this issue Oct 14, 2017 · 1 comment
Labels

Comments

@ShannonChenCHN
Copy link
Owner

No description provided.

@ShannonChenCHN
Copy link
Owner Author

ShannonChenCHN commented Oct 14, 2017

读『优秀的 iOS 应用架构:MVVM、MVC、VIPER,孰优孰劣?

一、概述

二、优秀的架构应该是什么样的

1. 几个特点

  • 每个对象都拥有一个特定、明确的角色
  • 拥有一个简单的数据流,易于理解
  • 不依赖于某个特定的框架或者服务
  • 足够灵活(因为它很简单,而不是因为它的过度设计),但不过于灵活
  • 是关注点分离的 (separation of concern),这是一个很清晰的设计模式,具备单一的清晰权责

2. 测试

三、让架构能够在未来几年都能够适用

四、糟糕的架构是什么样的

四、设计模式

1. 设计模式该怎么用

2. 组合设计模式 (Composition)

3. 依赖注入 (dependency injection)

五、流行的架构模式

1. MVC

2. VIPER

3. MVVM

六、我们能做什么

1. MVVM+

2. Flow Coordinator

3. Coordinator Redux

七、ReSwift

八、代码注入工具

九、总结

十、Q&A

@ShannonChenCHN ShannonChenCHN changed the title 读『[优秀的 iOS 应用架构:MVVM、MVC、VIPER,孰优孰劣?](https://academy.realm.io/cn/posts/krzysztof-zablocki-mDevCamp-ios-architecture-mvvm-mvc-viper/)』 读『优秀的 iOS 应用架构:MVVM、MVC、VIPER,孰优孰劣?』 Oct 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant