Skip to content

Instantly share code, notes, and snippets.

@Kishimoto96
Created May 4, 2023 11:07
Show Gist options
  • Save Kishimoto96/6263997afe1b7cb552efdf17090341b2 to your computer and use it in GitHub Desktop.
Save Kishimoto96/6263997afe1b7cb552efdf17090341b2 to your computer and use it in GitHub Desktop.

Discussion Questions about MVC architecture:

  1. What is the Model-View-Controller (MVC) architecture, and how does it work in software development?
  2. What is Model component in MVC?
  3. How does the View component work in MVC, and what are some common examples of Views in web development?
  4. What is the Controller component in MVC, and how does it interact with the Model and View components?
  5. What are some common challenges of using MVC in software development?
@TasneemAkkad
Copy link

@tarik310 @heisenberg550 @Sara-Nefise

  1. The Model-View-Controller (MVC) is an architectural pattern that separates an application into three main logical components: the model, the view, and the controller. Each of these components are built to handle specific development aspects of an application,
    Model: The model represents the data and the logic of the application. View: The view is responsible for presenting the data to the user in a graphical form. Controller: The controller acts as an intermediary between the model and the view. By using MVC can change the view to update the user interface without changing the underlying data or logic.
  2. The model component stores data and its related logic. It represents data that is being transferred between controller components or any other related business logic.
  3. View component is responsible for presenting the data to the user in a graphical form. It is an interface that displays the data and allows the user to interact with it. View component in web development is typically implemented using HTML, CSS, and JavaScript.
  • Complexity: MVC can be complex to understand and implement, especially for developers who are not familiar with the architecture.
    -Over engineering: There is a risk of over-engineering the application when using MVC.
    -Testing: Testing the application can be challenging, especially when testing the interactions between the components.
    5.Common challenges of using MVC in software development include a steeper learning curve for developers who are not familiar with it, and potentially more overhead in implementing the separate Model, View, and Controller components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment