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 ...
Get ASP.NET MVC 2 in Action 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.