What are some good uses of the Singleton pattern? Is it ever acceptable? -
possible duplicate:
singleton: how should used
i've read singletons bad. instance, makes code hard test. there acceptable uses of singletons?
sometimes want 1 , 1 connection database. making connector singleton ensures not spin multiple connections.
Comments
Post a Comment