Click here to Skip to main content
15,891,905 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: Everything That Has a Beginning Has an End (Eventually) Pin
cpkilekofp14-Jul-11 8:38
cpkilekofp14-Jul-11 8:38 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
AspDotNetDev14-Jul-11 8:55
protectorAspDotNetDev14-Jul-11 8:55 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
cpkilekofp14-Jul-11 10:30
cpkilekofp14-Jul-11 10:30 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
AspDotNetDev14-Jul-11 10:49
protectorAspDotNetDev14-Jul-11 10:49 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
cpkilekofp14-Jul-11 11:11
cpkilekofp14-Jul-11 11:11 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
Fabio Franco14-Jul-11 11:21
professionalFabio Franco14-Jul-11 11:21 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
User 483504714-Jul-11 4:23
User 483504714-Jul-11 4:23 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
icestatue14-Jul-11 16:10
icestatue14-Jul-11 16:10 
I was exposed to a similar situation but it didn't involve an auto generated tool so much as a terrible programmer. We had a stored procedure that used 13 parameters to be used as filters for a set of data that we would return to the users. After getting a complaint that the filter was acting strange I was told to review the procedure to find the bug. When I opened the procedure I noticed that an if then else chain of about 3000 combinations of variations of the select statement had been hand written to account for every scenario that could exist. The only problem was that we figured that this was only a small fraction of the coverage of code needed to work correctly we also noticed when coping the procedure it was more the 5 megs in length. We were able to shorten the script to about 12 lines of code when we finished it.
nothing

GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
AspDotNetDev14-Jul-11 16:17
protectorAspDotNetDev14-Jul-11 16:17 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
Lutosław14-Jul-11 23:32
Lutosław14-Jul-11 23:32 
GeneralEverything That Has a Beginning Has an End Pin
AspDotNetDev11-Jul-11 8:21
protectorAspDotNetDev11-Jul-11 8:21 
GeneralRe: Everything That Has a Beginning Has an End Pin
Shameel15-Jul-11 10:05
professionalShameel15-Jul-11 10:05 
RantSeriously? Why write it yourself PinPopular
JChrisCompton7-Jul-11 5:39
JChrisCompton7-Jul-11 5:39 
GeneralRe: Seriously? Why write it yourself Pin
BillW337-Jul-11 10:39
professionalBillW337-Jul-11 10:39 
GeneralRe: Seriously? Why write it yourself Pin
BobJanova7-Jul-11 23:08
BobJanova7-Jul-11 23:08 
RantAnd... Pin
JChrisCompton8-Jul-11 7:03
JChrisCompton8-Jul-11 7:03 
GeneralRe: Seriously? Why write it yourself PinPopular
TorstenH.8-Jul-11 3:10
TorstenH.8-Jul-11 3:10 
GeneralRe: Seriously? Why write it yourself Pin
Ra-one10-Jul-11 18:56
Ra-one10-Jul-11 18:56 
GeneralRe: Seriously? Why write it yourself Pin
TorstenH.10-Jul-11 23:43
TorstenH.10-Jul-11 23:43 
GeneralI feel dirty [modified] Pin
Dan Neely6-Jul-11 3:17
Dan Neely6-Jul-11 3:17 
GeneralRe: I feel dirty Pin
BobJanova7-Jul-11 22:58
BobJanova7-Jul-11 22:58 
Questionexcel formula anyone Pin
fuximus5-Jul-11 16:46
fuximus5-Jul-11 16:46 
AnswerRe: excel formula anyone Pin
0bx5-Jul-11 22:45
0bx5-Jul-11 22:45 
GeneralRe: excel formula anyone Pin
fuximus5-Jul-11 22:53
fuximus5-Jul-11 22:53 
GeneralRe: excel formula anyone Pin
kwkonrad6-Jul-11 4:15
kwkonrad6-Jul-11 4:15 

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.