Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

For a better development practice what do you prefer MVP or MVC and why ?

user-image
Question added by Rami Khasawneh , Solutions Architect , Bloomberg BNA
Date Posted: 2013/09/26
Khadijah Shtayat
by Khadijah Shtayat , Technical Lead , Opensooq

Itsdepend of application  project focuse and project desgin as you see on follwing pictuers how the MVC and MVP act but keep in mind that

MVC is advantageous to use when components are redrawn on every event received from the user.

MVP was invented on a bit different conditions - when you build the application based on component framework and there is no need to constantly recreate the View.

MVC

 

MVP

MVC and MVP paradigms are quite similar to each other but their usage depends on the number of conditions. For MVC when View is refreshed every time on a particular event and for MVP when it is not required to recreate View every time.

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

if you are starting 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

Rami Khasawneh
by Rami Khasawneh , Solutions Architect , Bloomberg BNA

As the last paragraphin your reply, key defference between both is complexity. Though MVP is abstracted from MVC it cannot handle complex views. MVP can handle one view per presenter so we can say you can share the view among presenters, where MVC can share controller to multiple views and allowing to display the appropriate view according page behavior.

Thanks for your reply

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.