MVC Advantage & Disadv. Flashcards

1
Q

What are the advantages of using the MVC design pattern?

A
  1. Simultaneous Development: Multiple developers can work on the Model, Controller, and Views concurrently.
  2. High Cohesion: Similar actions are logically grouped together in Controllers, and Views are grouped for specific Models.
  3. Loose Coupling: Models, Views, and Controllers are loosely coupled, allowing for independent development.
  4. Ease of Modification: Future modifications are simpler due to the clear separation of responsibilities.
  5. Multiple Views for a Model: A single Model can have multiple Views, providing flexibility in data representation.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the disadvantages of using the MVC design pattern?

A
  1. Complexity: MVC can make the application structure more complex, which may be overwhelming for small projects.
  2. Learning Curve: Developers may need time to understand the MVC pattern, especially if they are new to it.
  3. Increased Development Time: Setting up the MVC structure can take more time compared to simpler patterns.
  4. Overhead: The separation of concerns can lead to more files and classes, which may increase the overhead in managing the codebase.
  5. Tight Coupling: If not implemented properly, the components (Model, View, Controller) can become tightly coupled, making it harder to maintain.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly