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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -