Tech Glossary

What is MVC?

MVC is an architectural pattern that divides an application into three different components: model, view, and controller. This makes it easier to develop and maintain applications because each component has a specific responsibility. A model represents the data in an application and the logic for how this data should be handled. A view is what the user sees and interacts with. A controller receives input from the user and then calls the appropriate methods in the model and view to perform the action. MVC is a very popular architectural pattern and is used by many different frameworks to build web applications. An example of a framework that uses MVC is Ruby on Rails.

Relaterade