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.
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
- Enable clean separation of concerns (SoC) .
- Enable full control over the rendered HTML.
- Enable Test Driven Development (TDD) (built with TDD in mind).
- SEO and REST friendly URL.
- Easy integration with JavaScript frameworks.
- Support third-party view engines such as NVelocity, Brail, NHaml.
- No ViewState and PostBack events.
- Follows the stateless nature of web.
- Extensible and Pluggable framework.
- Ideal platform for Web 2.0 applications.
Comments