Click here to Skip to main content
15,889,096 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: Expletive Deleted Pin
AspDotNetDev20-Jul-13 8:40
protectorAspDotNetDev20-Jul-13 8:40 
GeneralRe: Expletive Deleted Pin
DeerBear20-Jul-13 10:42
DeerBear20-Jul-13 10:42 
GeneralRe: Expletive Deleted Pin
AspDotNetDev20-Jul-13 16:39
protectorAspDotNetDev20-Jul-13 16:39 
GeneralRe: Expletive Deleted Pin
DeerBear20-Jul-13 22:31
DeerBear20-Jul-13 22:31 
JokeRe: Expletive Deleted Pin
AspDotNetDev21-Jul-13 6:39
protectorAspDotNetDev21-Jul-13 6:39 
GeneralRe: Expletive Deleted Pin
BC_programming12-Jul-13 1:16
BC_programming12-Jul-13 1:16 
GeneralRe: Expletive Deleted Pin
MSBassSinger12-Jul-13 3:36
professionalMSBassSinger12-Jul-13 3:36 
GeneralRe: Expletive Deleted Pin
Zombie Code Monkey9-Jul-13 4:52
Zombie Code Monkey9-Jul-13 4:52 
Welcome to my world. We have an application that was converted from mainframe COBOL to netCobol, i.e. the worst .Net step-child ever thought up, then converted to C# a few years later. The Brainchild behind this endeavor felt it necessary to code this into the netCobol version.
C#
toolStripStatusLabel1.Text = "Silly error message that by rights should be in a message box.";
Console.Beep();

This kind of thing exists 87 times and they're still in the new C# version. I figure if a message to the user is important enough to require a beep to get their attention, it should really be in a message box. Then again, the person coding this app also thought it would be a good idea to load the main form with 12,000+ lines of code, most of which is business logic. But what do I know, I only have an associates degree.
Comments from work:
  • "Why can't you just do it like everybody else?"
  • "Well, we haven't had any complaints yet."
  • "I just want to get it into production."
  • "It only matters if it’s important to someone who matters."


GeneralRe: Expletive Deleted Pin
Rob Grainger9-Jul-13 4:59
Rob Grainger9-Jul-13 4:59 
GeneralRe: Expletive Deleted Pin
Zombie Code Monkey9-Jul-13 5:35
Zombie Code Monkey9-Jul-13 5:35 
GeneralRe: Expletive Deleted Pin
AspDotNetDev9-Jul-13 6:05
protectorAspDotNetDev9-Jul-13 6:05 
GeneralRe: Expletive Deleted Pin
PIEBALDconsult9-Jul-13 8:28
mvePIEBALDconsult9-Jul-13 8:28 
GeneralRe: Expletive Deleted Pin
Rob Grainger9-Jul-13 22:45
Rob Grainger9-Jul-13 22:45 
GeneralRe: Expletive Deleted Pin
Shameel10-Jul-13 4:38
professionalShameel10-Jul-13 4:38 
GeneralRe: Expletive Deleted Pin
Rob Grainger10-Jul-13 5:09
Rob Grainger10-Jul-13 5:09 
GeneralRe: Expletive Deleted Pin
AspDotNetDev10-Jul-13 5:15
protectorAspDotNetDev10-Jul-13 5:15 
GeneralRe: Expletive Deleted Pin
Ingo11-Jul-13 6:24
Ingo11-Jul-13 6:24 
GeneralRe: Expletive Deleted Pin
Corporal Agarn10-Jul-13 1:44
professionalCorporal Agarn10-Jul-13 1:44 
GeneralRe: Expletive Deleted Pin
Rob Grainger10-Jul-13 5:14
Rob Grainger10-Jul-13 5:14 
GeneralRe: Expletive Deleted Pin
ExcellentOrg10-Jul-13 20:38
ExcellentOrg10-Jul-13 20:38 
GeneralRe: Expletive Deleted Pin
Lee Chetwynd11-Jul-13 1:28
Lee Chetwynd11-Jul-13 1:28 
GeneralRe: Expletive Deleted Pin
donbsc11-Jul-13 3:41
donbsc11-Jul-13 3:41 
GeneralRe: Expletive Deleted Pin
RafagaX11-Jul-13 4:43
professionalRafagaX11-Jul-13 4:43 
GeneralRe: Expletive Deleted Pin
Rob Grainger15-Jul-13 23:05
Rob Grainger15-Jul-13 23:05 
GeneralWhat this 'null' check doing here... PinPopular
Mohammed Hameed8-Jul-13 3:06
professionalMohammed Hameed8-Jul-13 3:06 

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.