In our development of LabWizard, we've found a couple of design patterns to be really invaluable in terms of making the software simpler and easier to test. One of these is the use of handler interfaces, which we looked at in Chapter 6. In the present chapter, we'll look at the advantages of another well-known design pattern, which is making what are commonly thought of as server-side classes responsible for their own display.
Suppose that we are writing software in which there is the concept of a
User. We will need to consider:
User objects are persisted.
The runtime behavior of
The presentation of
User objects on screen.
It is a fairly common practice for these ...