Click here to Skip to main content
11,577,240 members (61,678 online)

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrasing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralHow not to create an instance of a singleton Pin
Dennis_E10-Apr-14 23:59
professionalDennis_E10-Apr-14 23:59 
JokeRe: How not to create an instance of a singleton Pin
Nicholas Marty11-Apr-14 0:25
professionalNicholas Marty11-Apr-14 0:25 
GeneralRe: How not to create an instance of a singleton Pin
Marc Clifton11-Apr-14 1:40
protectorMarc Clifton11-Apr-14 1:40 
GeneralRe: How not to create an instance of a singleton Pin
Nicholas Marty11-Apr-14 3:16
professionalNicholas Marty11-Apr-14 3:16 
GeneralRe: How not to create an instance of a singleton Pin
Marc Clifton11-Apr-14 4:52
protectorMarc Clifton11-Apr-14 4:52 
GeneralRe: How not to create an instance of a singleton Pin
Dennis_E24-Apr-14 1:16
professionalDennis_E24-Apr-14 1:16 
GeneralRe: How not to create an instance of a singleton Pin
Nicholas Marty24-Apr-14 3:20
professionalNicholas Marty24-Apr-14 3:20 
GeneralRe: How not to create an instance of a singleton Pin
BobJanova11-Apr-14 6:50
memberBobJanova11-Apr-14 6:50 
If there'll only ever be one instance, that's your typical singleton, isn't it? I don't really understand your quiz question.

I've done load-on-demand singletons in the past which may be what the doofus in charge of this example was going for, I suppose.
GeneralRe: How not to create an instance of a singleton Pin
Bernhard Hiller11-Apr-14 2:21
professionalBernhard Hiller11-Apr-14 2:21 
GeneralRe: How not to create an instance of a singleton Pin
OriginalGriff11-Apr-14 5:42
protectorOriginalGriff11-Apr-14 5:42 
GeneralRe: How not to create an instance of a singleton Pin
Jacek Gajek29-Apr-14 10:51
memberJacek Gajek29-Apr-14 10:51 
GeneralThere is nothing new under the sun... Pin
Duncan Edwards Jones9-Apr-14 7:22
professionalDuncan Edwards Jones9-Apr-14 7:22 
GeneralRe: There is nothing new under the sun... Pin
I.explore.code9-Apr-14 7:41
memberI.explore.code9-Apr-14 7:41 
GeneralRe: There is nothing new under the sun... Pin
Chris Maunder9-Apr-14 7:55
adminChris Maunder9-Apr-14 7:55 
GeneralRe: There is nothing new under the sun... Pin
Kornfeld Eliyahu Peter9-Apr-14 10:05
professionalKornfeld Eliyahu Peter9-Apr-14 10:05 
GeneralRe: There is nothing new under the sun... Pin
Rob Grainger10-Apr-14 23:30
memberRob Grainger10-Apr-14 23:30 
GeneralRe: There is nothing new under the sun... Pin
Duncan Edwards Jones10-Apr-14 23:49
professionalDuncan Edwards Jones10-Apr-14 23:49 
GeneralRe: There is nothing new under the sun... Pin
Sander Rossel24-Apr-14 7:42
memberSander Rossel24-Apr-14 7:42 
GeneralHow not to do transaction processing Pin
Rob Grainger9-Apr-14 6:12
memberRob Grainger9-Apr-14 6:12 
GeneralRe: How not to do transaction processing Pin
Duncan Edwards Jones9-Apr-14 7:13
professionalDuncan Edwards Jones9-Apr-14 7:13 
GeneralRe: How not to do transaction processing Pin
Rob Grainger10-Apr-14 4:12
memberRob Grainger10-Apr-14 4:12 
GeneralRe: How not to do transaction processing Pin
W Balboos11-Apr-14 1:14
memberW Balboos11-Apr-14 1:14 
GeneralRe: How not to do transaction processing Pin
clawton9-Apr-14 12:30
memberclawton9-Apr-14 12:30 
GeneralRe: How not to do transaction processing Pin
BobJanova9-Apr-14 23:39
memberBobJanova9-Apr-14 23:39 
GeneralRe: How not to do transaction processing Pin
Rob Grainger10-Apr-14 4:14
memberRob Grainger10-Apr-14 4:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150603.1 | Last Updated 4 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid