Chapter 2. Presentation model
This chapter covers
- Representing UI concepts in code
- Defining the presentation model
- Representing user input
- Scaling to complex scenarios
A model is a representation of something meaningful. It’s not necessarily something physical but something real: a business concept or an API that’s difficult to work with.
When we write object-oriented software, we create classes that make up this representation. We can create our representation so that when we use it we’re working in a natural human language, like English or Spanish or business jargon, instead of in programming language constructs like Booleans, meaningless strings, and integers.
When working with a user interface (UI) framework like ASP.NET MVC, the ...