View Controller Explained from MVC

Miguel Luc
Aug 9, 2017 · 2 min read

As I began my first week at Firehose I learned a ton of great new information. However certain aspects of what I was coding / learning still remained a mystery, and it almost looked like there was a bunch of behind the scenes magic that I was still not ready to comprehend. I am referring to the Model View Controller concept. Following I will attempt to best explain the View Controller portion of this concept in order to hopefully help others understand it as well as my self.

Controller

The Controller is where we code, and control what it is that must be displayed within the view. The controller is used to reach out for the data , create and set variables, and manipulate data. It is where all the information can be pieced together and then sent to another page through the use of routes.

View

From my understanding the View is where all the information is shown. In the Splurty app the view would be the webpage where the user can access it. Here is where the values are sent to, and loaded up.

I hope this helps as I am still learning about this concept some of the information might change. Following is an image that I thought was helpful in visualizing the MVC.

Source: https://www.codeproject.com/Articles/383153/The-Model-View-Controller-MVC-Pattern-with-Csharp

Miguel Luc

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade