advice please
From: Noah Roberts (nroberts_at_dontemailme.invalid)
Date: 08/13/04
- Next message: Vijay singh: "Re: 3 tier architecture: a lot of questions"
- Previous message: Shayne Wissler: "Re: misconceptions on computer science"
- Next in thread: H. S. Lahman: "Re: advice please"
- Reply: H. S. Lahman: "Re: advice please"
- Reply: Cristiano Sadun: "Re: advice please"
- Reply: Mark Nicholls: "Re: advice please"
- Reply: Robert C. Martin: "Re: advice please"
- Reply: Universe: "Re: advice please"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 13 Aug 2004 13:03:00 -0700
The problem: Implement a protocol that contains multiple "modes" where
commands and events cause the system to enter a specific mode in which
different sets of commands are available. Some commands are available
in any mode, others result in an error saying disallowed. Some commands
result in different things depending on the mode we are in.
I am thinking that mode is a state and so that pattern fits. I also
have commands parsing themselves and returning command subclasses based
on input (prototype). What I am working on now is who should know more,
the mode or the command. Should commands query the mode and dissalow
themselves, or should the mode querry the command and dissalow it?
Should I generalize the mode interface so that the command can perform
operations or should I have the mode query the command for data
(arguments) and perform the operations? Is there another option I am
not thinking of?
--
Our enemies are innovative and resourceful - and so are we
They never stop thinking about new ways to harm our country and our
people - and neither do we.
-- George W. Bush
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
- Next message: Vijay singh: "Re: 3 tier architecture: a lot of questions"
- Previous message: Shayne Wissler: "Re: misconceptions on computer science"
- Next in thread: H. S. Lahman: "Re: advice please"
- Reply: H. S. Lahman: "Re: advice please"
- Reply: Cristiano Sadun: "Re: advice please"
- Reply: Mark Nicholls: "Re: advice please"
- Reply: Robert C. Martin: "Re: advice please"
- Reply: Universe: "Re: advice please"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|