模型-视图-呈现器和三层?
模型-视图-呈现器和三层这两种架构有什么区别?
当单独阅读时,我理解每个定义的定义,但我无法轻易看出它们有何不同。是桌面版还是网页版?我目前正在用 Python 开发一个简单的桌面应用程序,以通过 GUI 可视化复杂的数据模型。
谢谢!
What is the difference between the two architectures: Model-View-Presenter and Three-Tier?
I understand the definitions of each when read individually, but I can't readily see how they're different. Is it desktop vs web? I am currently developing a simple desktop application in Python to visualize a complicated data model via a GUI.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
MVC是一种UI模式,三层是一种应用程序架构模式。也就是说,您可以用 3 层设计您的应用程序 - UI、BL、数据。然后在 UI 层使用 MVC。
MVC is an UI pattern, three tier is an application architecture pattern. That is you can design your application with 3 tiers - UI, BL, data. And than use MVC in the UI tier.
MVC 是一种试图简化三层架构的 UI 实现模式。 MVC 只是实现三层的方法之一。
MVC is a UI implementation pattern that attempts to simplify three tier architecture. MVC is just one of the ways you can implement three-tier.
我认为主要区别在于,在 MVP/MVC 中,视图可以进入模型来获取数据,而在 n 层中,有更严格的分离,其中每个层只允许与直接上方/下方的层进行交互它。
I think the main differences is that in MVP/MVC, the view gets to reach into the model to get data, while in n-tier, there's a stricter separation, where each tier is only allowed to interface with the tier directly above/below it.