Re: THE SINGLETON PATTERN ?
From: Raymond DeCampo (rdecampo_at_spam.twcny.spam.rr.spam.com.spam)
Date: 10/08/04
- Previous message: Edwin Martin: "Re: parse mime"
- In reply to: Alicia Roberts: "THE SINGLETON PATTERN ?"
- Next in thread: MiBx: "Re: THE SINGLETON PATTERN ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 07 Oct 2004 23:28:52 GMT
Alicia Roberts wrote:
> Hello everyone, I have been researching the Singleton Pattern. Since the
> singleton pattern uses a private constructor which in turn reduces
> extendability, if you make the Singleton Polymorphic what sort of
> problems/issues should be considered?
>
> Also, I see that a singleton needs to be set up with certain data such as
> file name, database URL etc. What issues are involved in this, and how
> would you do this?
>
> If someone knows about the Singleton pattern please reply. Thanks
>
> Alicia
Alicia,
It has been my experience that the singleton pattern is not really a
good idea. No matter how convinced you are that you will only ever need
one of these objects, you inevitably end up needing more.
Ray
-- XML is the programmer's duct tape.
- Previous message: Edwin Martin: "Re: parse mime"
- In reply to: Alicia Roberts: "THE SINGLETON PATTERN ?"
- Next in thread: MiBx: "Re: THE SINGLETON PATTERN ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|