ASP NET MVC Architecture

It IS essentially a more structured of functional programming. And that’s what throws so many people off when they’re starting. You’re told “it’s night and day different than procedural programming!” when it’s really just its more versatile sibling.


Developers can modify one of the pieces, and the other 2 pieces should keep working and not require modifications. When designing MVC software – the logic in each of the three buckets is independent. Everything in View acts independently of the model – and vice verse, the view won’t have any logic dependent on the model. You can think of a web application as a Model View Controller design. MVC is popular in web applications, one of the reasons is because responsibilities are divided between the client & server. This blog post defines the concept of a Model-View-Controller software design pattern and does a basic example Model-View-Controller in JavaScript/HTML/CSS. The framework navigation can some time complex as it introduces new layers of abstraction which requires users to adapt to the decomposition criteria of MVC.


However, the MVC pattern is also being used in many other environments, not all of them being strictly an application for displaying and updating data in a database. The View is the module whose task is to display data to the user. It does not have any functionality in itself, other than what is needed to transform and lay out the data as needed by the display format.

MVC Architecture was initially included in the two major web development frameworks – Struts and Ruby on Rails. The goal of Tygrve was to solve the problem of users controlling a large and complex data set. Since the MVC pattern was invented before web browsers, initially was used as an architectural pattern for graphical user interfaces. The View component is used for all the UI logic of the application. Views are created by the data which is collected by the model component but these data aren’t taken directly but through the controller. Some web MVC frameworks take a thin client approach that places almost the entire model, view and controller logic on the server.

Featured Programs

How hard would it be to make sure that every single one of them had a different name so there would be no conflicts? You can have a thousand “getVariable()” methods if they’re all in different classes.

  • The Model module has no functionality on its own other than as an interface between the data and the rest of the program.
  • Udacity is the trusted market leader in talent transformation.
  • MVC Architecture was initially included in the two major web development frameworks — Struts and Ruby on Rails.
  • It IS essentially a more structured method of functional programming.
  • So, long story short, you need to learn MVC for future flexibility and to hide and enforce business rules so you don’t accidentally introduce bugs writing things procedurally.

E.g. if you have a bunch of mvc programmer that all deal with changing the stats on a game character, you put them all in a file called “characterModificationFunctions.php”. Again, it keeps your code base neater and makes finding bugs easier to locate and fix. In otherwords “worst practice procedural programming” with “best practice oop programming” .

ASP.NET MVC Architecture

However, their scheme differed from both Reenskaug et al.’s and that presented by the Smalltalk-80 reference books. Smalltalk-80 supports a version of MVC that evolved from this one. It provides abstract View and Controller classes as well as various concrete subclasses of each that represent different generic widgets. In this scheme, a View represents some way of displaying information to the user, and a Controller represents some way for the user to interact with a View.

  • The model interacts with the database and gives the required data back to the controller.
  • So, it processes requests like GET, POST, PUT or PATCH, and DELETE.
  • Examples might be simplified to improve reading and basic understanding.

I work on 2 websites that are done in procedural classic ASP, and I gnash my teeth at not being able to convert them to OOP because they would be SOOOOOO much easier to fix. I’m going to say right now that OOP and procedural are NOT mutually exclusive. They are two different programming styles that are tools in your kit to be brought out where applicable. I was a die-hard procedural programmer for 8 years, until I got into my first real programming job and had to take a crash course in OOP. I struggled for months to wrap my head around OOP, and while all the books I read could define OOP for me, they didn’t explain it in a way that CONVINCED me it was a “better way”. The book definition of “Rendering real-world objects into a code-based paradigm” just confused the shit out of me. Until I shifted how I looked at it and discovered my personal style was OOP.

Leave a Reply

Your email address will not be published. Required fields are marked *

Let's talk

If you want to get a free consultation without any obligations, fill in the form below and we'll get in touch with you.