Menu Bar

Tuesday, April 26, 2016

What is MVC? What's big deal on it?

What is MCV?
MVC stands for Model View Controller. It is a software design pattern or software development methodology.

What is the main objectives of MCV?
1. Promote code usability
2. Implement separation of concerns
  ( For example., If you want to change the user interface, you don't have to change the business logic.
    If you want to change the business logic or query, you don't have to change the UI part.)

Software divided into three main components - MODEL, VIEW and CONTROLLER.

MODEL - The Software logic * Business Rules * Applications Data (data access layer)
  1. It is class. I promise you its just a class file with data property 
  2. It deals with data that user gonna deal it in UI
  3. It is not a database. Just data types handler and holder which can be operated before view.
VIEW - The User interface (presentation layer)

CONTROLLERS - Handles the communication between users and models (Decision Taker - gets data from models and show the appropriate views to users)
* It acts like a server :P

I have referred these concepts from below YOUTUBE link.



http://www.codeproject.com/Articles/866143/Learn-MVC-Project-in-days-Day

No comments:

Post a Comment