Brendan Ang

Search

Search IconIcon to open search

Model-View-Controller Architecture

Last updated Nov 8, 2022 Edit Source

# MVC Architecture

# Design Problems

  1. Tight coupling between UI and application logic
  2. Observer Pattern: Need for UI to update when state changes
  3. Strategy Pattern: Need for UI to support different functionalities depending on the user input

View:

# Pros

  1. Support for simultaneous development
  2. Support for multiple views with just 1 Model
  3. High cohesion: grouping of related actions
  4. Low coupling

# Cons

  1. Code navigability
  2. Maintaining multi-artefact consistency: decomposition of features results in scattering