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: Guess it does not contains 'Contains' Pin
Nagy Vilmos22-Sep-11 1:46
professionalNagy Vilmos22-Sep-11 1:46 
GeneralRe: Guess it does not contains 'Contains' Pin
VallarasuS22-Sep-11 2:02
VallarasuS22-Sep-11 2:02 
GeneralAnother GoTo Hell Pin
Rob Grainger21-Sep-11 5:22
Rob Grainger21-Sep-11 5:22 
GeneralRe: Another GoTo Hell Pin
Nagy Vilmos21-Sep-11 5:39
professionalNagy Vilmos21-Sep-11 5:39 
GeneralRe: Another GoTo Hell Pin
Rob Grainger22-Sep-11 5:40
Rob Grainger22-Sep-11 5:40 
GeneralRe: Another GoTo Hell Pin
StM0n22-Sep-11 7:49
StM0n22-Sep-11 7:49 
GeneralRe: Another GoTo Hell Pin
Stefan_Lang30-Sep-11 4:05
Stefan_Lang30-Sep-11 4:05 
GeneralRe: Another GoTo Hell Pin
Allan Thomas23-Sep-11 19:40
Allan Thomas23-Sep-11 19:40 
Pfft. That's nothing I'm currently 'fixing' an email service in c# that was somewhat similar except the person who coded it was doing logical checks before data checks. They were checking a from address (in a nice if tree) to determine how it fit into the system and then checking the content of the email (the same code used multiple times).

Then to top that off there were goto statements so after certain sections of testing was completed then move on to the next 'step'. This also has no comments, documentation, etc so I'm having a fun time refactoring it.
GeneralSqlConnection Object in Session and President/CEO's 'vacuum claim' Pin
Vasudevan Deepak Kumar9-Sep-11 5:35
Vasudevan Deepak Kumar9-Sep-11 5:35 
JokeRe: SqlConnection Object in Session and President/CEO's 'vacuum claim' PinPopular
Julien Villers9-Sep-11 6:24
professionalJulien Villers9-Sep-11 6:24 
GeneralRe: SqlConnection Object in Session and President/CEO's 'vacuum claim' Pin
Vasudevan Deepak Kumar9-Sep-11 7:23
Vasudevan Deepak Kumar9-Sep-11 7:23 
GeneralRe: SqlConnection Object in Session and President/CEO's 'vacuum claim' Pin
RobCroll13-Sep-11 16:53
RobCroll13-Sep-11 16:53 
GeneralRe: SqlConnection Object in Session and President/CEO's 'vacuum claim' Pin
fjdiewornncalwe14-Sep-11 3:33
professionalfjdiewornncalwe14-Sep-11 3:33 
GeneralIs this the case to select case? PinPopular
Alberto Biasiutti8-Sep-11 6:07
Alberto Biasiutti8-Sep-11 6:07 
GeneralRe: Is this the case to select case? PinPopular
RCoate8-Sep-11 12:27
RCoate8-Sep-11 12:27 
GeneralRe: Is this the case to select case? Pin
Alberto Biasiutti8-Sep-11 20:46
Alberto Biasiutti8-Sep-11 20:46 
GeneralRe: Is this the case to select case? Pin
BotCar8-Sep-11 23:54
BotCar8-Sep-11 23:54 
GeneralRe: Is this the case to select case? Pin
Alberto Biasiutti9-Sep-11 2:42
Alberto Biasiutti9-Sep-11 2:42 
GeneralRe: Is this the case to select case? Pin
V.9-Sep-11 2:12
professionalV.9-Sep-11 2:12 
GeneralRe: Is this the case to select case? Pin
Alberto Biasiutti9-Sep-11 3:00
Alberto Biasiutti9-Sep-11 3:00 
GeneralRe: Is this the case to select case? Pin
V.9-Sep-11 3:05
professionalV.9-Sep-11 3:05 
GeneralRe: Is this the case to select case? Pin
Nagy Vilmos9-Sep-11 5:10
professionalNagy Vilmos9-Sep-11 5:10 
GeneralRe: Is this the case to select case? Pin
Alberto Biasiutti9-Sep-11 5:21
Alberto Biasiutti9-Sep-11 5:21 
GeneralRe: Is this the case to select case? Pin
OriginalGriff14-Sep-11 3:12
mveOriginalGriff14-Sep-11 3:12 
GeneralRe: Is this the case to select case? Pin
Nagy Vilmos14-Sep-11 3:39
professionalNagy Vilmos14-Sep-11 3:39 

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.