What is the difference between MVP and MVC? [duplicate]

谁说胖子不能爱 提交于 2019-12-08 05:44:10

问题


Possible Duplicate:
What are MVP and MVC and what is the difference?

I don't see any difference between MVP and MVC software architectures (MVC where controller implements mediator pattern), other than the name by which you call the mediator (presenter vs controller)

Can someone provide a clear explanation?

I care because I have a reasonable understanding of MVC via cocoa and I'm wondering how that knowledge will have to grow to understand MPF/C#/.NET


回答1:


Darin's provided a good link. I'd say there are a couple key differences, but a lot of similarity. MVP's view is even simpler than MVVC's - it doesn't know about the model. That makes it easier to get everything covered by tests, IMHO. Also, it makes it easier to provide alternate views, for example, if you want both a GUI and a CLI. But, read the article, it covers the topic well.



来源:https://stackoverflow.com/questions/3219056/what-is-the-difference-between-mvp-and-mvc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!