« [GWT] One step above the HTML CanvasLeave UDP Alone! »

The Ultimate Singleton Pattern Tutorial

11/19/08

Permalink 08:00:05 pm, by nogunner Email , 97 words   English (US)
Categories: Misc

The Ultimate Singleton Pattern Tutorial

I'm so tired with all the dozens of singleton pattern tutorials poping up every day, it's like there is a world-wide never-ending contest of the worst singleton pattern introduction ever. But hey, if there is a contest, ain't I supposed to contribute, and optionally TO WIN?!

So here is it, and what's better than a Single(ton) image to describe the pattern:

Singleton Pattern Description

Note also that just like in every other useless tutorial, I won't mention the double-check locking issue or why the pattern should be avoided now that IoC is widely spread.

So, who's the boss now ?!

1 comment

Comment from: Florent Ramière [Visitor] Email · http://www.jaxio.com
*****
Salut,

Miško Hevery qui s'occupe de la qualité chez Google a un super talk sur les singletons, et "bash" de facon factuelle les développeurs sur le sujet.
Sa vidéo est ici : http://misko.hevery.com/2008/11/21/clean-code-talks-global-state-and-singletons/

Je suis tout à fait d'accord avec toit les "double-check locking", les incidences du nouveau JMM, et autre pipos sont tout à fait irritants.

Florent.
11/23/08 @ 00:04

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
nogunner's blog

Pointless technical stuffs are the bomb diggity of life.

March 2010
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Search

XML Feeds

Web Monitoring

Be sure to check my LinkLogics web monitoring application if you happen to need external monitoring.
powered by b2evolution free blog software