What is the difference between MVP and MVC?

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


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.

链接地址: http://www.djcxy.com/p/30196.html

上一篇: MVC和MVP体系结构之间的区别

下一篇: MVP和MVC有什么区别?