Home Segments Index Top Previous Next

286: Mainline

The explicit-representation principle: Whenever there is a natural category with which your program needs to work, there should be a class in your program that corresponds to that category.

In the food domain, for example, there are natural categories corresponding to vegetables, dairy products, meats, and grains.