Click here to Skip to main content
12,445,025 members (51,349 online)

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.

 
RantOh no, not again.... Pin
Jacek Gajek25-May-13 3:23
memberJacek Gajek25-May-13 3:23 
GeneralRe: Oh no, not again.... Pin
KP Lee28-May-13 18:11
memberKP Lee28-May-13 18:11 
GeneralRe: Oh no, not again.... Pin
Jacek Gajek29-May-13 1:12
memberJacek Gajek29-May-13 1:12 
GeneralRe: Oh no, not again.... Pin
johannesnestler6-Jun-13 4:32
memberjohannesnestler6-Jun-13 4:32 
GeneralRe: Oh no, not again.... Pin
KP Lee6-Jun-13 20:13
memberKP Lee6-Jun-13 20:13 
GeneralRe: Oh no, not again.... Pin
johannesnestler7-Jun-13 2:14
memberjohannesnestler7-Jun-13 2:14 
GeneralRe: Oh no, not again.... Pin
KP Lee7-Jun-13 22:13
memberKP Lee7-Jun-13 22:13 
GeneralFound something interesting Pin
BotCar23-May-13 22:08
memberBotCar23-May-13 22:08 
Just came across the following in some code I maintain:

foreach (Object item in group)
{
// Some code...
int i = 1;
string key = "SomeString_" + i.ToString();
// Some more code...
}

I suspect the idea was to use i to help make the dictionary keys unique.
GeneralWhy not: // just shoot me! Pin
esaulsberry20-May-13 8:48
memberesaulsberry20-May-13 8:48 
GeneralRe: Why not: // just shoot me! Pin
Pualee20-May-13 10:14
memberPualee20-May-13 10:14 
GeneralRe: Why not: // just shoot me! Pin
OriginalGriff20-May-13 11:02
protectorOriginalGriff20-May-13 11:02 
GeneralRe: Why not: // just shoot me! Pin
Pankaj Nikam20-May-13 19:26
memberPankaj Nikam20-May-13 19:26 
GeneralRe: Why not: // just shoot me! Pin
Oshtri Deka20-May-13 22:15
memberOshtri Deka20-May-13 22:15 
GeneralRe: Why not: // just shoot me! Pin
Gary Wheeler21-May-13 1:17
memberGary Wheeler21-May-13 1:17 
GeneralRe: Why not: // just shoot me! Pin
englebart21-May-13 2:39
memberenglebart21-May-13 2:39 
GeneralRe: Why not: // just shoot me! Pin
Gary Wheeler21-May-13 2:48
memberGary Wheeler21-May-13 2:48 
GeneralRe: Why not: // just shoot me! Pin
esaulsberry21-May-13 2:59
memberesaulsberry21-May-13 2:59 
GeneralRe: Why not: // just shoot me! Pin
agolddog21-May-13 3:35
memberagolddog21-May-13 3:35 
GeneralRe: Why not: // just shoot me! Pin
esaulsberry21-May-13 3:40
memberesaulsberry21-May-13 3:40 
GeneralRe: Why not: // just shoot me! Pin
StatementTerminator21-May-13 3:51
memberStatementTerminator21-May-13 3:51 
GeneralRe: Why not: // just shoot me! Pin
Jacek Gajek24-May-13 0:02
memberJacek Gajek24-May-13 0:02 
GeneralRe: Why not: // just shoot me! Pin
StatementTerminator24-May-13 3:49
memberStatementTerminator24-May-13 3:49 
GeneralRe: Why not: // just shoot me! Pin
Jacek Gajek24-May-13 11:36
memberJacek Gajek24-May-13 11:36 
GeneralRe: Why not: // just shoot me! Pin
Luiz Felipe Stangarlin27-May-13 7:15
memberLuiz Felipe Stangarlin27-May-13 7:15 
GeneralRe: Why not: // just shoot me! Pin
Jacek Gajek27-May-13 10:34
memberJacek Gajek27-May-13 10:34 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160811.3 | Last Updated 24 Aug 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid