On Fri, Jan 16, 2009 at 1:56 PM, Henry <[email protected]> wrote:
> I'm definitely not an OO guru, but I don't know why I don't like the
> final design purposed by the book author.
>
> I think I'd prefer using state pattern for representing the states of
> the CoffeeMaker.

Years ago I would have preferred to use a finite state machine to
represent this but it's a very procedural approach and the State
pattern really only encapsulates that kind of approach. As I said,
five years ago I probably wouldn't have gotten near the elegance of
the author's final design but nowadays I would and I think even five
years ago I would definitely have appreciated it and preferred it over
anything I could have come up with. That's why good OO design is hard.
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to