MVC Code Design Example 2
Calculator App
In our first video, we defined the concept of MVC (Model-View-Controller). And we practiced by designing the bird’s eye view of the code needed for a simple game app, a Match-Match game. In this video we are taking our understanding about MVC further by designing the overview for the code objects that would be involved in a calculator app, similar to the one shipped by Apple with every iPhone device.
Come and learn with me how to put MVC in practice. What kind of objects would the model need? How about the controller and the view?
On a side note, this video is also touching briefly on formatting, which is a process of converting raw data into useful visual information on the screen for the user. Formatting depends very much on the location of the user. Which component of MVC would be in charge with running this process?