Member-only story

What exactly is the Model View Controller(MVC) Design Pattern?

Jesse L
2 min readJun 26, 2021

--

Hi everyone, welcome back. Are you a computer science student? Have you thought about learning a computer programming language? Have you thought about becoming a software engineer? If you have, then you may have heard about the Model-View-Controller software design pattern. I will go over what exactly the MVC design is.

Whenever you work on a software project, you want to think about your code design and how to structure it. The MVC model is commonly used when developing user interfaces. The MVC model can be used for nearly any type of application involving a user interface such as a desktop application, web application, or a mobile application. The MVC model is used to divide the logic of your code into three different pieces, the model, the view, and the controller. This helps to design and structure your code, keeping things organized. Let’s go over each individual piece.

Model

The model piece holds the applications data structure. The model holds and manages the data and logic, because of this, the model knows what the application can do and can’t do. Think about an object, the model can be an object with variables that serve as it’s properties and has functions that serve as it’s actions. The model gets input from the controller and performs an action based off of the input. The…

--

--

Jesse L
Jesse L

Written by Jesse L

Hi, I'm a passionate technology enthusiast and lifelong learner. Beyond my technical pursuits, I'm also passionate about sharing my enthusiasm with others.

No responses yet