Click here to Skip to main content
15,902,784 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: 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 
I kind of had your first responder's reaction to this code, then recalled my irritation with code that used var and forced me to look-up the return type of the function to figure out what the object was. So, my second reaction was YA, someone is forcing the lazy programmer to stop using the lazy var keyword.

I want to kill 'm and sing his/her praises. You could say I'm conflicted.
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 
GeneralRe: C#'s sneaky typedef Pin
harold aptroot29-May-13 2:33
harold aptroot29-May-13 2:33 
GeneralRe: C#'s sneaky typedef Pin
BobJanova29-May-13 4:08
BobJanova29-May-13 4:08 
GeneralRe: C#'s sneaky typedef Pin
harold aptroot29-May-13 4:14
harold aptroot29-May-13 4:14 
GeneralRe: C#'s sneaky typedef Pin
KP Lee29-May-13 17:17
KP Lee29-May-13 17:17 
GeneralRe: C#'s sneaky typedef Pin
AspDotNetDev29-May-13 5:39
protectorAspDotNetDev29-May-13 5:39 
GeneralRe: C#'s sneaky typedef Pin
Simon O'Riordan from UK29-May-13 20:53
Simon O'Riordan from UK29-May-13 20:53 
GeneralRe: C#'s sneaky typedef Pin
AspDotNetDev30-May-13 5:07
protectorAspDotNetDev30-May-13 5:07 
GeneralRe: C#'s sneaky typedef Pin
Simon O'Riordan from UK30-May-13 5:13
Simon O'Riordan from UK30-May-13 5:13 
GeneralRe: C#'s sneaky typedef Pin
AspDotNetDev30-May-13 6:27
protectorAspDotNetDev30-May-13 6:27 
GeneralRe: C#'s sneaky typedef Pin
Simon O'Riordan from UK30-May-13 22:32
Simon O'Riordan from UK30-May-13 22:32 
GeneralRe: C#'s sneaky typedef Pin
KP Lee29-May-13 17:11
KP Lee29-May-13 17:11 

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.