Click here to Skip to main content
15,885,244 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: One instance of an application Pin
akyriako7827-May-09 21:02
akyriako7827-May-09 21:02 
GeneralRe: One instance of an application Pin
Tristan Rhodes27-May-09 23:25
Tristan Rhodes27-May-09 23:25 
JokeRe: One instance of an application Pin
Tr@v3-Jun-09 6:47
Tr@v3-Jun-09 6:47 
GeneralRe: One instance of an application Pin
akyriako784-Jun-09 3:58
akyriako784-Jun-09 3:58 
GeneralRe: One instance of an application Pin
Jamie Nordmeyer8-Jun-09 9:10
Jamie Nordmeyer8-Jun-09 9:10 
GeneralRe: One instance of an application Pin
Jörgen Sigvardsson12-Jun-09 6:58
Jörgen Sigvardsson12-Jun-09 6:58 
GeneralRe: One instance of an application Pin
akyriako7814-Jun-09 20:50
akyriako7814-Jun-09 20:50 
GeneralWonderful description strings! PinPopular
Rajesh R Subramanian26-May-09 2:11
professionalRajesh R Subramanian26-May-09 2:11 
I was working with some old code (well, as usual) and came across this situation where the debugger reported an unhandled exception. I handled it, and well...
try
{
  //existing code which was not within the try block
}
catch(CPrException *pExc)
{
  OutputDebugString(pExc->GetErrorDescription());
  delete pExc;
}

And error description printed in the external debugger was:
Something is really wrong!
WTF | :WTF:

Something is wrong? Really wrong? Well, thanks for letting me know. Someone out there was having a really wicked sense of humor while writing it. I would personally want to take him out and beat him to death with an old-skool mechanical keyboard.


It is a crappy thing, but it's life -^ Carlo Pallini

GeneralRe: Wonderful description strings! Pin
Wouter Kok26-May-09 21:32
Wouter Kok26-May-09 21:32 
JokeRe: Wonderful description strings! Pin
Michael Bookatz27-May-09 0:55
Michael Bookatz27-May-09 0:55 
GeneralRe: Wonderful description strings! Pin
Jeroen De Dauw27-May-09 9:02
Jeroen De Dauw27-May-09 9:02 
GeneralRe: Wonderful description strings! Pin
BillW3311-Aug-09 8:21
professionalBillW3311-Aug-09 8:21 
GeneralThe While If Pin
bulg19-May-09 8:24
bulg19-May-09 8:24 
GeneralRe: The While If Pin
PIEBALDconsult19-May-09 9:26
mvePIEBALDconsult19-May-09 9:26 
GeneralRe: The While If Pin
supercat919-May-09 11:24
supercat919-May-09 11:24 
GeneralRe: The While If Pin
PIEBALDconsult19-May-09 12:19
mvePIEBALDconsult19-May-09 12:19 
GeneralRe: The While If Pin
supercat919-May-09 13:55
supercat919-May-09 13:55 
GeneralRe: The While If Pin
PIEBALDconsult19-May-09 15:12
mvePIEBALDconsult19-May-09 15:12 
GeneralRe: The While If Pin
Nagy Vilmos19-May-09 22:11
professionalNagy Vilmos19-May-09 22:11 
GeneralRe: The While If Pin
PIEBALDconsult20-May-09 3:08
mvePIEBALDconsult20-May-09 3:08 
GeneralRe: The While If Pin
bolivar12322-May-09 9:05
bolivar12322-May-09 9:05 
GeneralConversion logic Pin
Jeroen De Dauw15-May-09 11:03
Jeroen De Dauw15-May-09 11:03 
RantRe: Conversion logic Pin
Samer Aburabie16-May-09 22:05
Samer Aburabie16-May-09 22:05 
GeneralRe: Conversion logic PinPopular
PIEBALDconsult17-May-09 3:20
mvePIEBALDconsult17-May-09 3:20 
GeneralRe: Conversion logic Pin
Samer Aburabie17-May-09 4:14
Samer Aburabie17-May-09 4:14 

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.