Click here to Skip to main content
15,875,017 members

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, embarrassing 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.

 
GeneralRe: When slapping yourself in the head is too good for you Pin
Gary Wheeler1-Nov-16 6:51
Gary Wheeler1-Nov-16 6:51 
GeneralEven the best of us... Pin
Marc Clifton21-Oct-16 4:39
mvaMarc Clifton21-Oct-16 4:39 
GeneralRe: Even the best of us... Pin
den2k8821-Oct-16 4:44
professionalden2k8821-Oct-16 4:44 
GeneralRe: Even the best of us... Pin
ZurdoDev21-Oct-16 4:46
professionalZurdoDev21-Oct-16 4:46 
GeneralRe: Even the best of us... Pin
Tim Carmichael21-Oct-16 4:52
Tim Carmichael21-Oct-16 4:52 
GeneralRe: Even the best of us... Pin
Manfred Rudolf Bihy21-Oct-16 6:47
professionalManfred Rudolf Bihy21-Oct-16 6:47 
GeneralRe: Even the best of us... Pin
Gary Wheeler1-Nov-16 6:58
Gary Wheeler1-Nov-16 6:58 
JokeRe: Even the best of us... Pin
phil.o3-Nov-16 3:22
professionalphil.o3-Nov-16 3:22 
It just made me think of a new pattern: the Failure Swallowing pattern (a behavioural one).
C#
bool failure;
try {
   // Some lengthy and fault-prone code
   // ...
}
catch {
   failure = false;
}
finally {
   failure = false;
}
if (failure) {
   failure = false;
}

And here is it; you will never see any error anymore. Poke tongue | ;-P
Loneliness and cheeseburgers are a dangerous mix.

GeneralJust Found This Pin
Kevin Marois13-Oct-16 10:32
professionalKevin Marois13-Oct-16 10:32 
GeneralRe: Just Found This Pin
Brisingr Aerowing13-Oct-16 13:15
professionalBrisingr Aerowing13-Oct-16 13:15 
GeneralRe: Just Found This Pin
U. G. Leander14-Oct-16 2:02
professionalU. G. Leander14-Oct-16 2:02 
GeneralRe: Just Found This Pin
Richard Deeming14-Oct-16 2:04
mveRichard Deeming14-Oct-16 2:04 
GeneralRe: Just Found This Pin
U. G. Leander14-Oct-16 2:06
professionalU. G. Leander14-Oct-16 2:06 
GeneralRe: Just Found This Pin
Rahul VB19-Oct-16 8:57
professionalRahul VB19-Oct-16 8:57 
GeneralRe: Just Found This Pin
Nathan Minier14-Oct-16 2:04
professionalNathan Minier14-Oct-16 2:04 
GeneralRe: Just Found This Pin
Power Puff Boy21-Oct-16 3:49
Power Puff Boy21-Oct-16 3:49 
GeneralRe: Just Found This Pin
Richard Deeming14-Oct-16 2:04
mveRichard Deeming14-Oct-16 2:04 
GeneralRe: Just Found This Pin
BillW3319-Oct-16 6:31
professionalBillW3319-Oct-16 6:31 
GeneralBest use of relational data ever Pin
Nathan Minier13-Oct-16 3:28
professionalNathan Minier13-Oct-16 3:28 
GeneralRe: Best use of relational data ever Pin
ZurdoDev13-Oct-16 3:35
professionalZurdoDev13-Oct-16 3:35 
GeneralRe: Best use of relational data ever Pin
Nathan Minier13-Oct-16 3:36
professionalNathan Minier13-Oct-16 3:36 
GeneralRe: Best use of relational data ever Pin
kmoorevs13-Oct-16 3:35
kmoorevs13-Oct-16 3:35 
GeneralRe: Best use of relational data ever Pin
Nathan Minier13-Oct-16 4:00
professionalNathan Minier13-Oct-16 4:00 
GeneralRe: Best use of relational data ever Pin
charlieg13-Oct-16 3:39
charlieg13-Oct-16 3:39 
GeneralRe: Best use of relational data ever PinPopular
PeejayAdams13-Oct-16 5:00
PeejayAdams13-Oct-16 5:00 

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

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