Sunday, May 23, 2010

Implementation of MVC



This is new and effective design pattern for designing the Code structure.
This is defining my these three type
1.Model
2.View
3.Controller

MODEL: Model is responsible for data processing, like database connection, querying database, implementing business rules and other resposibilities related to the database.Model responds to the request made by controllers and notifies the registered views to update their display with new data.




VIEW: View basically related to the logical part of the structure this will having the logic of processing the data from the contoller ---> Model and after that processing the data from the Model --> Controller.



CONTROLLER:
Controller is responsible for Notice of action. Controller responds to the mouse or keyboard input to command model and view to change. Controllers are associated with views. User interaction triggers the events to change the model, which in turn calls some methods of model to update its state to notify other registered views to refresh their display.

Benefits:
#Since MVC handles the multiple views using the same enterprise model it is easier to maintain, test and upgrade the multiple system.
#It will be easier to add new clients just by adding their views and controllers.
#It is possible to have development process in parallel for model, view and controller.
Drawbacks:
#Requires high skilled experienced professionals who can identify the requirements
#It requires the significant amount of time to analyze and design.

No comments:

Post a Comment