Refining the Model
In general, it is a good idea to develop a functional first iteration of an application. There are several tradeoffs that have been made in the Crazy Eights game so far.
In this next section, however, we'll look at refining both the model and the application a little. In the process we can achieve some performance improvements as well.
Design Pattern #2
We have developed WebObjects components and applications long enough to be able to make another observation about design. For most intents and purposes, the methods we defined in WebObjects components are of these types:
Accessors
Accessor methods to retrieve and set variables have been used only where necessary. Private accessors are rarely ever used.
Request-Response methods ...
Get WebObjects® Developer's Guide 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.