Should i use mvc or mvp
Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Ask Question. Asked 4 years, 11 months ago. Active 4 years, 11 months ago. Viewed 8k times. In one of the articles that I read, it was said: Now onto Model View Presenter, which was a response to the inadequacies of the MVC pattern when applied to modern component based graphical user interfaces.
Improve this question. Victor Victor 5 5 silver badges 7 7 bronze badges. Duplicate of stackoverflow. Victor, do you have a specific question other than "why are there two different patterns?
If it helps, the Model and the View are essentially the same in both patterns. Focus on the differences between a Controller and a Presenter. You can find more help here: linkedin. I suggest you go take a relaxing hot bath or skip some stones across a duck-filled pond or something. That sort of reading can, in the absence of any practical application, really melt your brain! The way you get the kind of answer you want is by building something using these patterns.
Then you will be enlightened. Show 9 more comments. Active Oldest Votes. But there are also some drawbacks to this approach: It requires more effort. The pattern separates responsibilities across three components: the view is responsible for rending UI elements, the controller is responsible for responding to UI actions, and the model is responsible for business behaviors and state management.
In most implementations, all three components can directly interact with each other and in some implementations, the controller is responsible for determining which view to display Front Controller Pattern ,. The view interface and service layer are commonly used to make writing unit tests for the presenter and the model easier. Key Benefits. Before using any pattern a developer needs to consider the pros and cons of using it.
But, there also a few drawbacks to consider. The biggest drawbacks are adding complexity and learning curve. While the patterns may not be appropriate for simple solutions; advance solutions can greatly benefit from using the pattern.
Key Differences. Like Article. Recommended Articles. Article Contributed By :. Easy Normal Medium Hard Expert. Writing code in comment? Please use ide. Load Comments. What's New.
0コメント