Women in Technology

Hear us Roar



Article:
  Top 12 Reasons to Write Unit Tests
Subject:   Singletons are dubious?
Date:   2003-04-04 17:09:09
From:   anonymous2
To the author: Can you please clarify your assertion that Singletons represent a "dubious pattern"?
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Eric M. Burke photo Singletons are dubious?
    2003-04-05 07:04:29  Eric M. Burke | O'Reilly Author [View]

    Sure...check out this URL and search for "singleton" to see a great discussion:
    http://groups.yahoo.com/group/xpstl/

    The project I'm working on now uses a lot of singletons, and I can speak from experience in saying that they are hard to test, hard to refactor, and make things too tightly coupled to "global variables" disguised as singletons.

    I think the discussion on the Yahoo group mentioned above says it all.