07 Task Performance 1_Virgen
07 Task Performance 1_Virgen
BSIT-302
I. Discuss the MVC implementation process based on your own perspective.
• Model: This component is responsible for managing the data and logic of the
application. It represents the core data and business logic. Any updates to the
data, whether from the controller or an external source, are handled here. The
model notifies the view of any data changes, allowing the view to update
accordingly.
• View: The view is the user interface layer. It presents data to the user in a
readable and interactive format. This layer listens for updates from the model,
and when data changes, the view refreshes to reflect the new data without
altering it directly. This separation allows for different views to represent the
same data model, such as a mobile UI versus a web UI.
• Controller: This component handles user input and acts as the intermediary
between the view and model. When a user interacts with the application (e.g.,
clicking a button or entering text), the controller interprets this input, modifies
the model as needed, and updates the view.
i. Step 1: This step initiates the interaction. A client (like a web browser)
sends a request to the MVC application, typically by navigating to a URL,
submitting a form, or interacting with an interface element.
ii. Step 2: Once the MVC application receives the request, it directs the
request to a specific controller based on the routing logic.
iii. Step 3: The controller processes the request by interacting with the
model, which contains the data and business logic of the application.
iv. Step 4: After the controller gets the required data or result from the
model, it then passes this data to the view component.
v. Step 5: The view displays the processed data to the user. This could
involve generating HTML, CSS, and JavaScript for a web application or
updating a mobile app’s interface.
II. What is the most significant advantage of utilizing an MVC framework in
interactive system development? Why?
• The most significant advantage of utilizing an MVC (Model-View-Controller)
framework in interactive system development is Separation of Concerns
(SoC).
Real-World Impact
1. Faster time-to-market.
2. Reduced development costs.
3. Increased application reliability.
4. Simplified updates and maintenance.
1. Django (Python).
2. Ruby on Rails.
3. Laravel (PHP).
4. Spring MVC (Java).
Best Practices
Model
View
Key Differences
Virgen, Rayzon Z.
BSIT-302
1. Responsibility: Model manages data; View handles presentation.
2. Scope: Model is application-wide; View is page-specific.
3. Interactions: Model interacts with database; View interacts with user.
4. Logic: Model contains business logic; View contains presentation logic.