Skip to Content.
Sympa Menu

patterns-discussion - Re: [patterns-discussion] Design pattern recommendation

patterns-discussion AT lists.siebelschool.illinois.edu

Subject: General talk about software patterns

List archive

Re: [patterns-discussion] Design pattern recommendation


Chronological Thread 
  • From: philbrown AT ukonline.co.uk
  • To: win_ash12 AT yahoo.com
  • Cc: "patterns-discussion AT cs.uiuc.edu" <patterns-discussion AT cs.uiuc.edu>
  • Subject: Re: [patterns-discussion] Design pattern recommendation
  • Date: Thu, 15 Nov 2007 16:01:18 +0000
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/patterns-discussion>
  • List-id: General talk about software patterns <patterns-discussion.cs.uiuc.edu>

Quoting
win_ash12 AT yahoo.com:

> Thanks David for your prompt response. I presume after refactoring the code
> for readability then the next step would be to introduce the State Design
> pattern for conditionals such as the one I have ?
> Regards,
> Aswin.
>

The State pattern would be applicable if you can think of the purpose of the
tests being to determine the state of your object. The fact that they are
based
on calls to other objects suggests that this may not be the case.

Cheers
Philip

----------------------------------------------
This mail sent through http://www.ukonline.net




Archive powered by MHonArc 2.6.16.

Top of Page