| Design Patterns
Nevertheless, is it a design pattern at all? We saw only one problem and one solution, right?
So here are two more examples:
(1) You need to generate an error code from your application. However, your code uses two languages: Perl and English. How do you allow for error codes and messages to be seen in other languages? (2) Suppose you write a code generator that generates PostScript. In order to have readable code, it is better to separate the PostScript code from the rest of your code, and put it in a phrasebook.
|
The original Phrasebook Design Pattern paper:
|