Subject:   Poorly chosen example
Date:   2006-10-27 12:49:30
From:   kriviere
First off, I only read the sample chapter 3, but the example shown there seemed so poorly chosen that I lost interest. I'm sure the decorator pattern they described is useful, but the various decorator classes they created were so similar that they varied only in their data. A much simpler design driven by data instead of having to write additional code when a new option is added would be much more appropriate. If the examples in other chapters are as poorly chosen then this could lead to learning the wrong lessons about which patterns to use.


(p.s. this comment form didn't display properly in Firefox 1.5.0.7. The image of the cover overlay the fields for the name and whatever the second field is.)