Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MVC->MVVC->Flux->Redux #2

Open
fish519 opened this issue May 4, 2019 · 0 comments
Open

MVC->MVVC->Flux->Redux #2

fish519 opened this issue May 4, 2019 · 0 comments

Comments

@fish519
Copy link
Owner

fish519 commented May 4, 2019

研发中干的蠢事:
在reducer中写了非纯函数(yield)

架构的发展
MVC 和 MVVC:
定义了视图层、数据层和控制层,控制层承载着复杂的业务逻辑,当项目变大的时候,数据流动方式会陷入混乱

Flux:
数据和逻辑永远单向流动,设计比较松散,没有一整套的定义清晰的解决方案

Redux:
reducer和flux
通过定义reducer来确定state的修改,reducer被设计为一个纯函数,是为了让状态的改变变得简单和可测试

@fish519 fish519 changed the title MVC MVC->MVVC->Flux->Redux May 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant