What is the difference between MVP and MVC? [dupli

2019-06-07 18:03发布

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条回答
霸刀☆藐视天下
2楼-- · 2019-06-07 18:35

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.

查看更多
登录 后发表回答