Click here to Skip to main content
15,895,557 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: Class with comments that say "Do not use" Pin
O.Phil16-Apr-10 3:34
O.Phil16-Apr-10 3:34 
GeneralRe: Class with comments that say "Do not use" Pin
Nish Nishant16-Apr-10 3:27
sitebuilderNish Nishant16-Apr-10 3:27 
GeneralRe: Class with comments that say "Do not use" Pin
Abhinav S17-Apr-10 5:43
Abhinav S17-Apr-10 5:43 
GeneralRe: Class with comments that say "Do not use" Pin
Chris Meech19-Apr-10 6:49
Chris Meech19-Apr-10 6:49 
GeneralRe: Class with comments that say "Do not use" Pin
Gregory Gadow29-Apr-10 5:35
Gregory Gadow29-Apr-10 5:35 
GeneralBeginners "luck" Pin
OriginalGriff10-Apr-10 22:09
mveOriginalGriff10-Apr-10 22:09 
GeneralRe: Beginners "luck" Pin
DaveAuld11-Apr-10 0:14
professionalDaveAuld11-Apr-10 0:14 
GeneralRe: Beginners "luck" Pin
OriginalGriff11-Apr-10 1:09
mveOriginalGriff11-Apr-10 1:09 
I know what you mean, but I think what got me was the way you could see the OP original thought process run through the whole thing:
"Good that works."
"Damn, forgot the last digit. That fixes it"
"Bugger, forgot the zeros if there are any left over...better put them in."
"What do you mean its back to front - sod it!"
"Oh, yes, I had better include it in the output..."

Without at any time wanting to change what the OP already has that is working (sort of)!
I do find that a reluctance to look back and change partly broken code does cause a lot of horrors...
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace

C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy

GeneralRe: Beginners "luck" Pin
DaveAuld11-Apr-10 0:18
professionalDaveAuld11-Apr-10 0:18 
GeneralRe: Beginners "luck" Pin
PIEBALDconsult11-Apr-10 4:25
mvePIEBALDconsult11-Apr-10 4:25 
GeneralRe: Beginners "luck" Pin
Jordy "Kaiwa" Ruiter12-Apr-10 6:00
Jordy "Kaiwa" Ruiter12-Apr-10 6:00 
GeneralRe: Beginners "luck" Pin
NormDroid13-Apr-10 2:43
professionalNormDroid13-Apr-10 2:43 
GeneralVB and an SqlDataSource Pin
Steve Wellens5-Apr-10 14:55
Steve Wellens5-Apr-10 14:55 
GeneralRe: VB and an SqlDataSource Pin
PIEBALDconsult5-Apr-10 17:35
mvePIEBALDconsult5-Apr-10 17:35 
GeneralRe: VB and an SqlDataSource Pin
Andrew Rissing6-Apr-10 4:08
Andrew Rissing6-Apr-10 4:08 
GeneralRe: VB and an SqlDataSource Pin
Bernhard Hiller8-Apr-10 22:09
Bernhard Hiller8-Apr-10 22:09 
GeneralRe: VB and an SqlDataSource Pin
supercat99-Apr-10 8:30
supercat99-Apr-10 8:30 
GeneralRe: VB and an SqlDataSource Pin
The Manoj Kumar22-Apr-10 19:32
The Manoj Kumar22-Apr-10 19:32 
GeneralThe Illusion of a Choice Pin
Andrew Rissing5-Apr-10 5:31
Andrew Rissing5-Apr-10 5:31 
GeneralRe: The Illusion of a Choice Pin
Rob Smiley5-Apr-10 9:11
Rob Smiley5-Apr-10 9:11 
GeneralRe: The Illusion of a Choice Pin
Andrew Rissing5-Apr-10 9:24
Andrew Rissing5-Apr-10 9:24 
GeneralRe: The Illusion of a Choice Pin
supercat95-Apr-10 11:00
supercat95-Apr-10 11:00 
GeneralRe: The Illusion of a Choice Pin
dojohansen8-Apr-10 2:30
dojohansen8-Apr-10 2:30 
GeneralRe: The Illusion of a Choice Pin
PIEBALDconsult5-Apr-10 9:36
mvePIEBALDconsult5-Apr-10 9:36 
GeneralRe: The Illusion of a Choice Pin
eatstoomuchjam7-Apr-10 3:55
eatstoomuchjam7-Apr-10 3:55 

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.