Re: THE SINGLETON PATTERN ?

From: Raymond DeCampo (rdecampo_at_spam.twcny.spam.rr.spam.com.spam)
Date: 10/08/04

  • Next message: Stephen C. Ferguson: "Re: C# Webservices and java"
    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.
    

  • Next message: Stephen C. Ferguson: "Re: C# Webservices and java"

    Relevant Pages

    • Re: THE SINGLETON PATTERN?
      ... I have been researching the Singleton Pattern. ... > singleton pattern uses a private constructor which in turn reduces ... typing it into a newsgroup posting doesn't constitute doing ...
      (comp.lang.cpp)
    • THE SINGLETON PATTERN?
      ... I have been researching the Singleton Pattern. ... singleton pattern uses a private constructor which in turn reduces ... extendability, if you make the Singleton Polymorphic what sort of ...
      (comp.lang.cpp)
    • THE SINGLETON PATTERN ?
      ... I have been researching the Singleton Pattern. ... singleton pattern uses a private constructor which in turn reduces ... extendability, if you make the Singleton Polymorphic what sort of ...
      (comp.lang.java)
    • Re: Whats the minimum score for exams?
      ... You use a private constructor when implementing the Singleton pattern - "a ... (see GOF). ... Good luck! ...
      (microsoft.public.cert.exam.mcad)