MVC in a nutshell

Trying to explain MVC in a very simple way.

How do we tell people about MVC, for none technical person or to just someone interviewing you for a job?

I did some research to further strengthen my knowledge in MVC. Here's how.

So what is MVC?

MVC stands for Model - View - Controller, okay hmm.. doesn't make sense yet.

Let's define each.

  • Model - model is all about data and nothing else.
  • View - view is simply our presentation layer, what users sees on the front end.
  • Controller - this is where the magic happens it contains the logic or actions being called by the view.
So what's the advantage of using MVC?


*Advantages of MVC Model
  1. Enable clean separation of concerns (SoC) .
  2. Enable full control over the rendered HTML.
  3. Enable Test Driven Development (TDD) (built with TDD in mind).
  4. SEO and REST friendly URL.
  5. Easy integration with JavaScript frameworks.
  6. Support third-party view engines such as NVelocity, Brail, NHaml.
  7. No ViewState and PostBack events.
  8. Follows the stateless nature of web.
  9. Extensible and Pluggable framework. 
  10. Ideal platform for Web 2.0 applications.

Comments

Popular posts from this blog

Serializing JSON string to ExpandoObject

XML to ExpandoObject using Recursion in C#

Automatically Discover and Assign Parameter with Values to a Stored Procedure Call in C#