+ Start a Discussion
AlasAlas 

What is MVC

What is MVC??

 

I know it as MODEL(objects) VIEW(visualforce) CONTROLLER(apex).

 

 

Why we will call as MVC, and if some one asks what is MVC what definition i can tell.

 

What is the use of MVC architecture??

Best Answer chosen by Admin (Salesforce Developers) 
SamuelDeRyckeSamuelDeRycke

It's a code design pattern that seperates your code into the parts you listed yourself. The use is a better structure of your code, which makes it easier to change and maintain it. With little impact, you should for instance be able to replace the entire view, without changes to the model or controller logic.

 

This is a well established pattern, and there are 1000 articles, blogs, papers, books,video's  about it.   http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller (chek out the references for more info)

All Answers

SamuelDeRyckeSamuelDeRycke

It's a code design pattern that seperates your code into the parts you listed yourself. The use is a better structure of your code, which makes it easier to change and maintain it. With little impact, you should for instance be able to replace the entire view, without changes to the model or controller logic.

 

This is a well established pattern, and there are 1000 articles, blogs, papers, books,video's  about it.   http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller (chek out the references for more info)

This was selected as the best answer
Forix ForenForix Foren
Good question to ask. Really MVC is the wonderful freamwoks and it's reduce developers code that means, this freamwork is generate the code for developers which is common so that developers only code which is needed by application. It stands for "Model-View-Controller." MVC is an application design model comprised of three interconnected parts. ... The MVC model or "pattern" is commonly used for developing modern user interfaces. It is provides the fundamental pieces for designing a programs for desktop or mobile, as well as web applications. Thanks a lot.
see: https://www.tsanj.org/probiotic-t50-review/
Hin ChHin Ch
Model–view–controller is a software design pattern commonly used for developing user interfaces which divides the related program logic into three interconnected elements. This is done to separate internal representations of information from the ways information is presented to and accepted from the user. for more information (https://en.wikipedia.org/wiki/Model–view–controller)
Regard (https://packagespoint.com)
 
Thesarkari YojanaThesarkari Yojana
MCV stands for mean corpuscular volume. There are three main types of corpuscles (blood cells) in your blood–red blood cells, white blood cells, and platelets. An MCV blood test measures the average size of your red blood cells, also known as erythrocytes. (Samagra Id (https://thesarkariyojana.in/samagra-id-portal-mp-online/) )Red blood cells move oxygen from your lungs to every cell in your body. Your cells need oxygen to grow, reproduce, and stay healthy. If your red blood cells are too small or too large, it could be a sign of a blood disorder such as anemia, a vitamin deficiency, or other medical condition. UP Ration Card (https://thesarkariyojana.in/up-ration-card-list-new-check-download/)
DIY wwwDIY www
Model View Controller or MVC as it is popularly called, is a software design pattern for developing web applications. A Model View Controller pattern is made up of the following three parts −

Model (https://www.pakainfo.com/laravel-6-eloquent-orm-mvc-tutorial/) − The lowest level of the pattern which is responsible for maintaining data.

View (https://www.pakainfo.com/mvc-in-laravel/) − This is responsible for displaying all or a portion of the data to the user.

Controller (https://www.pakainfo.com/php-oop-crud-mvc-framework-tutorial/) − Software Code that controls the interactions between the Model and View.

MVC is popular as it isolates the application logic from the user interface layer and supports separation of concerns. Here the Controller receives all requests for the application and then works with the Model to prepare any data needed by the View. The View then uses the data prepared by the Controller to generate a final presentable response. The MVC abstraction can be graphically represented as follows.

The Model-View-Controller (MVC) is an architectural pattern that separates an application into three main logical components: the model, the view, and the controller. Each of these components are built to handle specific development aspects of an application.

Also Know You Learn More: MVC Example