Factory Design Pattern and Select Case
From: dean hully (deanh_at_foto1.com)
Date: 03/19/05
- Previous message: H. S. Lahman: "Re: Attaching a behavior only to multiple classes."
- Next in thread: Phlip: "Re: Factory Design Pattern and Select Case"
- Reply: Phlip: "Re: Factory Design Pattern and Select Case"
- Reply: Robert C. Martin: "Re: Factory Design Pattern and Select Case"
- Reply: H. S. Lahman: "Re: Factory Design Pattern and Select Case"
- Reply: Daniel T.: "Re: Factory Design Pattern and Select Case"
- Reply: Mark Nicholls: "Re: Factory Design Pattern and Select Case"
- Reply: alex99_at_medcentral.com.au: "Re: Factory Design Pattern and Select Case"
- Reply: Costin Cozianu: "Re: Factory Design Pattern and Select Case"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 19 Mar 2005 11:57:09 -0500
I have been involved in another ng that is debating the un oo'ness of
select case statements in VB.net or C#. The consensus seems to be
avoid them where possible.
My problem is in vb.net or C# I always seem to get to the point where
I need them. What am I missing?
For instance, in the factory pattern how do I avoid using a select in
the factory to choose which object to create? One answer has been
CallByName and another is using the app.config or web.config to create
a coupling between the variable/property of the client and the
resulting object created by the factory.
Any opinions out there?
Thanks,
Dean
- Previous message: H. S. Lahman: "Re: Attaching a behavior only to multiple classes."
- Next in thread: Phlip: "Re: Factory Design Pattern and Select Case"
- Reply: Phlip: "Re: Factory Design Pattern and Select Case"
- Reply: Robert C. Martin: "Re: Factory Design Pattern and Select Case"
- Reply: H. S. Lahman: "Re: Factory Design Pattern and Select Case"
- Reply: Daniel T.: "Re: Factory Design Pattern and Select Case"
- Reply: Mark Nicholls: "Re: Factory Design Pattern and Select Case"
- Reply: alex99_at_medcentral.com.au: "Re: Factory Design Pattern and Select Case"
- Reply: Costin Cozianu: "Re: Factory Design Pattern and Select Case"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|