ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Top 12 Reasons to Write Unit Tests
Subject:   Singletons are dubious?
Date:   2003-04-05 07:04:29
From:   burke_e
Response to: Singletons are dubious?

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.