Click here to Skip to main content
15,900,461 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: Catches win matches... they say Pin
Lutosław4-Jun-13 22:39
Lutosław4-Jun-13 22:39 
GeneralRe: Catches win matches... they say Pin
lewax0030-May-13 5:45
lewax0030-May-13 5:45 
GeneralRe: Catches win matches... they say Pin
AlphaDeltaTheta30-May-13 17:10
AlphaDeltaTheta30-May-13 17:10 
GeneralRe: Catches win matches... they say Pin
Bernhard Hiller30-May-13 21:45
Bernhard Hiller30-May-13 21:45 
GeneralRe: Catches win matches... they say Pin
tumbledDown2earth30-May-13 22:55
tumbledDown2earth30-May-13 22:55 
GeneralRe: Catches win matches... they say Pin
Gaston Verelst20-Jun-13 3:19
Gaston Verelst20-Jun-13 3:19 
GeneralRe: Catches win matches... they say Pin
jbojarczuk20-Jun-13 14:13
jbojarczuk20-Jun-13 14:13 
GeneralC#'s sneaky typedef PinPopular
harold aptroot26-May-13 0:42
harold aptroot26-May-13 0:42 
I was completely flabbergasted by a piece of C# code, until I saw one line near the top (hidden at first in a collapsed block) that read
C#
using var = System.Int32;

Wow, OK. Yes, you can do that, and yes, that makes var (note the colour) behave exactly like int (well like Int32 really - that is, you can't use it as the base type of an enum), and yes, this forum is highlighting it with the wrong colour in the code block.

modified 27-May-13 2:24am.

GeneralRe: C#'s sneaky typedef PinPopular
OriginalGriff26-May-13 1:09
mveOriginalGriff26-May-13 1:09 
GeneralRe: C#'s sneaky typedef Pin
StM0n26-May-13 2:12
StM0n26-May-13 2:12 
GeneralRe: C#'s sneaky typedef Pin
Oshtri Deka26-May-13 21:36
professionalOshtri Deka26-May-13 21:36 
GeneralRe: C#'s sneaky typedef Pin
Gary Wheeler27-May-13 1:21
Gary Wheeler27-May-13 1:21 
GeneralRe: C#'s sneaky typedef PinPopular
Brisingr Aerowing26-May-13 3:13
professionalBrisingr Aerowing26-May-13 3:13 
QuestionRe: C#'s sneaky typedef Pin
Super Lloyd26-May-13 3:52
Super Lloyd26-May-13 3:52 
GeneralRe: C#'s sneaky typedef Pin
harold aptroot26-May-13 3:59
harold aptroot26-May-13 3:59 
GeneralRe: C#'s sneaky typedef Pin
Thomas Daniels26-May-13 5:13
mentorThomas Daniels26-May-13 5:13 
GeneralRe: C#'s sneaky typedef Pin
harold aptroot26-May-13 5:20
harold aptroot26-May-13 5:20 
GeneralRe: C#'s sneaky typedef Pin
KP Lee27-May-13 11:15
KP Lee27-May-13 11:15 
GeneralRe: C#'s sneaky typedef Pin
KP Lee27-May-13 11:12
KP Lee27-May-13 11:12 
GeneralRe: C#'s sneaky typedef Pin
BobJanova27-May-13 23:33
BobJanova27-May-13 23:33 
GeneralRe: C#'s sneaky typedef Pin
KP Lee28-May-13 17:43
KP Lee28-May-13 17:43 
GeneralRe: C#'s sneaky typedef Pin
Simon O'Riordan from UK28-May-13 22:39
Simon O'Riordan from UK28-May-13 22:39 
GeneralRe: C#'s sneaky typedef Pin
BobJanova28-May-13 22:51
BobJanova28-May-13 22:51 
GeneralRe: C#'s sneaky typedef Pin
Lutosław29-May-13 1:19
Lutosław29-May-13 1:19 
GeneralRe: C#'s sneaky typedef Pin
BobJanova29-May-13 2:26
BobJanova29-May-13 2:26 

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.