hfdp-book

'Head First Design Patterns' opinions wanted

Has anyone read 'Head First Design Patterns' by O'Reilly? If so what do you think? ...

Singleton pattern - doubt in Head First Design Patterns book

Hi all, On page 175, there is an example of Chocolate Boiler class. Something like this: public class ChocolateBoiler { private boolean empty; private boolean boiled; public ChocolateBoiler { empty = true; boiled = false; } // and then three methods to fill, drain and boil which changes the // status...

Head First Design Patterns - Decorator Pattern

I'm reading the chapter on the Decorator Pattern in Head First Design Patterns. They use a coffee ordering system as an example to teach the pattern. While the Decorator Pattern seems a useful pattern, it does not seem appropriate for a coffee ordering system. Wouldn't it be simpler to just have a table (or list or some such) of ite...