Understanding Model/View programming

Model/View programming has its roots in the Model View Controller (MVC) design pattern. The main idea behind the pattern is to decompose your problem into three loosely coupled components, as follows:

  • The Model, which is responsible for storing and manipulating data
  • The View, which is responsible for rendering and visualizing the data
  • The Controller, which is responsible for additional business logic and providing data from the model to the view

Through its evolution, we now have a simplified and more convenient approach to programming called Model/View programming. It's similar to the MVC pattern, except it omits the Controller by making the View and the Model more concerned about the functionality ...

Get Expert C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.