Document-View
- Definition
- A single class provides both model and controller logic, and model logic is separated
How does it work?
This pattern is an elaboration of Smart-UI where the model (document) has been placed in a separate class.
Examples
- Simple GUI applications
When should you use it?
- When maintenance of the application is not a factor of importance, because its stays small, but you want to perform tests on domain logic.