Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

Which design patteren is better MVC or MVP in web application development? and why?

user-image
Question ajoutée par Tarek Adel Ahmed Abdalla, PMP, MIBA , Director of software Manufacturing , Emaratech
Date de publication: 2013/10/28
Houssem Gharsallah
par Houssem Gharsallah , Software Architect , NOMD Technologies

MVP is an advanced version and upgrade of MVC. As far as which is the best, I think MVP is better. 

Why ? Because it ensures a proper decoupling between the view and the model unlike MVC where the view has a direct access to the model.

The decoupling facilitates testing and updating your solution.

In MVP, to get or post data, the view must call the presenter which will do all the work on the model and send back results to the view (if results are required). Thus you get a more coherent application architecture and easy to debug

Arief Shah
par Arief Shah , Software Developer/Project Manager , Durat

if you start a new project, then ASP.net MVC is a better choice. But if you just want to refactor an existing project then MVP is the option because there is no easy way to convert those web-forms codes to MVC.

 

Hope this helps if so please like the answer

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?