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

web开发MVC结构扩展,更加合理的代码分层 - vita2333_瓶子的博客 #3

Open
vita2333 opened this issue Aug 18, 2019 · 0 comments

Comments

@vita2333
Copy link
Owner

https://vita2333.github.io/blog/code/more-efficient-code-structure/

传统MVC存在的问题web开发中MVC已经是一个常见的结构了,然而对于稍微复杂的项目还是有一些问题: 业务代码写在model层,导致model越来越臃肿,新旧业务、不同场景杂糅,越来越难以维护。 复杂业务同时设计多个model(多张表),到底应该放在哪个model里? 网上有的说MVC导致代码难以测试什么的,其实并不是这样,代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant