Click here to Skip to main content
15,885,216 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: Just go home Pin
loctrice31-May-12 6:51
professionalloctrice31-May-12 6:51 
GeneralRe: Just go home Pin
enhzflep31-May-12 6:30
enhzflep31-May-12 6:30 
GeneralRe: Just go home Pin
Paul Conrad31-May-12 10:14
professionalPaul Conrad31-May-12 10:14 
GeneralRe: Just go home Pin
BillW331-Jun-12 3:11
professionalBillW331-Jun-12 3:11 
GeneralRe: Just go home Pin
loctrice1-Jun-12 4:08
professionalloctrice1-Jun-12 4:08 
GeneralRe: Just go home Pin
BillW331-Jun-12 12:52
professionalBillW331-Jun-12 12:52 
GeneralRe: Just go home Pin
Sander Rossel1-Jun-12 11:38
professionalSander Rossel1-Jun-12 11:38 
Jokevar tomorrow = ? PinPopular
Christian Brüggemann29-May-12 3:05
Christian Brüggemann29-May-12 3:05 
Found this in my colleagues' code today. We had a good laugh on that Smile | :)

C#
\\ some code

var item = values.TryGet<ITimelineItem>(3);

var dt = (DateTime)values[0];
var tomorrow = new DateTime(2012, 4, 26); // DateTime.Today.AddDays(1);

if(item != null)
\\ some more code

GeneralRe: var tomorrow = ? PinPopular
leppie29-May-12 5:40
leppie29-May-12 5:40 
GeneralRe: var tomorrow = ? Pin
musicdev29-May-12 12:49
musicdev29-May-12 12:49 
GeneralRe: var tomorrow = ? PinPopular
ekolis30-May-12 7:20
ekolis30-May-12 7:20 
GeneralRe: var tomorrow = ? Pin
Sander Rossel30-May-12 11:14
professionalSander Rossel30-May-12 11:14 
GeneralRe: var tomorrow = ? Pin
Tom Chantler30-May-12 21:35
professionalTom Chantler30-May-12 21:35 
GeneralRe: var tomorrow = ? Pin
SortaCore30-May-12 21:54
SortaCore30-May-12 21:54 
GeneralRe: var tomorrow = ? Pin
Fedor Hajdu30-May-12 23:26
professionalFedor Hajdu30-May-12 23:26 
GeneralRe: var tomorrow = ? Pin
BillW3331-May-12 3:03
professionalBillW3331-May-12 3:03 
GeneralRe: var tomorrow = ? Pin
Fabio Franco31-May-12 6:40
professionalFabio Franco31-May-12 6:40 
GeneralRe: var tomorrow = ? Pin
DarthDana31-May-12 4:28
professionalDarthDana31-May-12 4:28 
GeneralRe: var tomorrow = ? Pin
Chris Berger4-Jun-12 10:11
Chris Berger4-Jun-12 10:11 
GeneralRe: var tomorrow = ? Pin
Brisingr Aerowing5-Jun-12 4:23
professionalBrisingr Aerowing5-Jun-12 4:23 
GeneralRe: var tomorrow = ? Pin
Chris Berger5-Jun-12 5:24
Chris Berger5-Jun-12 5:24 
GeneralRe: var tomorrow = ? Pin
Timothy J Sygitowicz31-May-12 5:08
Timothy J Sygitowicz31-May-12 5:08 
GeneralRe: var tomorrow = ? Pin
Member 205300631-May-12 23:15
Member 205300631-May-12 23:15 
GeneralCare for belt, suspenders, and a spare rope? PinPopular
KP Lee28-May-12 19:44
KP Lee28-May-12 19:44 
GeneralRe: Care for belt, suspenders, and a spare rope? Pin
Mohibur Rashid28-May-12 21:14
professionalMohibur Rashid28-May-12 21: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.