By electro via electrotek.wordpress.com Published: Aug 06 2008 / 18:52
Just say "No" to Singletons.
what a stupid example
Don't use singletons if you can avoid it. There are far better alternatives. Think about dependency injection (and others).
The post doesn't ask you to use Singleton. It just tells you how to implement :)
Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.
Comments
noahz replied ago:
Just say "No" to Singletons.
zynasis replied ago:
what a stupid example
texD replied ago:
Don't use singletons if you can avoid it. There are far better alternatives. Think about dependency injection (and others).
atoztoa replied ago:
The post doesn't ask you to use Singleton. It just tells you how to implement :)
Voters For This Link (23)
Voters Against This Link (7)