TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

MVC is only part of the picture

1 点作者 benrhughes超过 12 年前

1 comment

antonwinter超过 12 年前
i like your article. good and pragmatic while still keeping clean separation in mind.<p>IMHO the business logic mixing in with persistence or other areas such as the model can and should be improved from all the code i have seen over my career.<p>I favor MVVM in general. i tend to attempt to move as much of the business logic into subclasses of my VMs. that way the VMs are pretty slim and the business rules are all in the one spot.