ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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

user-image
تم إضافة السؤال من قبل Tarek Adel Ahmed Abdalla, PMP, MIBA , Director of software Manufacturing , Emaratech
تاريخ النشر: 2013/10/28
Houssem Gharsallah
من قبل 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
من قبل 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

المزيد من الأسئلة المماثلة