By jsugrue
via java.dzone.com
Published: Jul 25 2008 / 12:04
I decided to write several posts about design patterns. Whether you use them or not, they are important and make your life easier (and probably increase your salary). Even if you are really not interested in design patterns, you will face questions about them in interviews or architectural design meetings. So you better open up your brain and learn some - there's nothing wrong with impressing a few colleagues.
SaveShareSend
Tags: java, methodology
Comments
kalitai replied ago:
Too bad this article didn't point out Bill Pugh's version, using the "Initialization on demand" idiom: http://en.wikipedia.org/wiki/Initialization_on_demand_holder_idiom
ceaseoleo replied ago:
this is sort of poorly written article, two threads can come in and create more than one instance, nothing more to say... follow the links in the comments, of the article, they are much more informative.
xcdesz replied ago:
Here come the singleton haters..
Voters For This Link (13)
Voters Against This Link (5)