We've expanded our news coverage and improved our search! Visit
news.oreilly.com for the latest or search for all things across O'Reilly!
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.
|