MVC Advantage & Disadv. Flashcards
1
Q
What are the advantages of using the MVC design pattern?
A
- Simultaneous Development: Multiple developers can work on the Model, Controller, and Views concurrently.
- High Cohesion: Similar actions are logically grouped together in Controllers, and Views are grouped for specific Models.
- Loose Coupling: Models, Views, and Controllers are loosely coupled, allowing for independent development.
- Ease of Modification: Future modifications are simpler due to the clear separation of responsibilities.
- Multiple Views for a Model: A single Model can have multiple Views, providing flexibility in data representation.
2
Q
What are the disadvantages of using the MVC design pattern?
A
- Complexity: MVC can make the application structure more complex, which may be overwhelming for small projects.
- Learning Curve: Developers may need time to understand the MVC pattern, especially if they are new to it.
- Increased Development Time: Setting up the MVC structure can take more time compared to simpler patterns.
- Overhead: The separation of concerns can lead to more files and classes, which may increase the overhead in managing the codebase.
- Tight Coupling: If not implemented properly, the components (Model, View, Controller) can become tightly coupled, making it harder to maintain.