Click here to Skip to main content
15,898,911 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.

 
General.NET Framework? What .NET Framework? Pin
Erik Burger6-Mar-07 3:57
Erik Burger6-Mar-07 3:57 
GeneralRe: .NET Framework? What .NET Framework? Pin
peterchen10-Mar-07 3:24
peterchen10-Mar-07 3:24 
GeneralRe: .NET Framework? What .NET Framework? Pin
Erik Burger11-Mar-07 22:52
Erik Burger11-Mar-07 22:52 
GeneralRe: .NET Framework? What .NET Framework? Pin
peterchen12-Mar-07 5:43
peterchen12-Mar-07 5:43 
GeneralRe: .NET Framework? What .NET Framework? Pin
Erik Burger12-Mar-07 23:36
Erik Burger12-Mar-07 23:36 
GeneralSQL Join? na I know a better way..... Pin
ra ra ra ra6-Mar-07 0:19
ra ra ra ra6-Mar-07 0:19 
GeneralSynchronizing threads Pin
Zorbek5-Mar-07 23:27
Zorbek5-Mar-07 23:27 
GeneralOutrageous error messages Pin
Roger Bamforth5-Mar-07 21:59
Roger Bamforth5-Mar-07 21:59 
I develop software to control scientific instruments. This is a different world to databases or financial software. The first rule is to insist on the electronic and mechanical designers proving that the hardware is working properly before you will consider that the software has a bug. (The first rule of the mechanical and electronic designers is, of course, "the software is faulty"). The second rule is that just when you've got it all working properly they will change the hardware.

I once worked on software to control a mass spectrometer. This detects a particle beam travelling down a vacuum tube. There were two types of detectors, the instrument could either be fitted with "high detectors" or "low detectors".

I was looking through the source one day when I came across this user error message (without the stars of course).

"Both high and low detectors fitted. B******S, THEY PROMISED ME THIS WOULD NEVER HAPPEN."



Regards

- Roger

GeneralRe: Outrageous error messages Pin
Rajesh R Subramanian6-Mar-07 0:15
professionalRajesh R Subramanian6-Mar-07 0:15 
GeneralRe: Outrageous error messages Pin
BSelznick6-Mar-07 15:13
BSelznick6-Mar-07 15:13 
GeneralRe: Outrageous error messages [modified] Pin
Roger Bamforth7-Mar-07 5:53
Roger Bamforth7-Mar-07 5:53 
GeneralRe: Outrageous error messages Pin
BSelznick7-Mar-07 6:53
BSelznick7-Mar-07 6:53 
General"Edit Thing Error" Pin
Anna-Jayne Metcalfe8-Mar-07 4:08
Anna-Jayne Metcalfe8-Mar-07 4:08 
GeneralRe: "Edit Thing Error" Pin
Erik Burger9-Mar-07 1:13
Erik Burger9-Mar-07 1:13 
GeneralRemember - this is supposed to be C#... Pin
6o'clock5-Mar-07 21:52
6o'clock5-Mar-07 21:52 
GeneralRe: Remember - this is supposed to be C#... Pin
jhwurmbach8-Mar-07 4:42
jhwurmbach8-Mar-07 4:42 
GeneralRe: Remember - this is supposed to be C#... Pin
Erik Burger9-Mar-07 1:10
Erik Burger9-Mar-07 1:10 
GeneralWe always use "i" as a loop counter... Pin
Hal Angseesing5-Mar-07 21:29
professionalHal Angseesing5-Mar-07 21:29 
GeneralRe: We always use "i" as a loop counter... Pin
BSelznick6-Mar-07 15:19
BSelznick6-Mar-07 15:19 
GeneralRe: We always use "i" as a loop counter... Pin
Ted Ferenc6-Mar-07 21:32
Ted Ferenc6-Mar-07 21:32 
GeneralRe: We always use "i" as a loop counter... Pin
Duncan Edwards Jones7-Mar-07 1:10
professionalDuncan Edwards Jones7-Mar-07 1:10 
GeneralRe: We always use "i" as a loop counter... Pin
John R. Shaw9-Mar-07 11:30
John R. Shaw9-Mar-07 11:30 
GeneralInfinite for loops Pin
Jesse Krebs5-Mar-07 21:00
Jesse Krebs5-Mar-07 21:00 
GeneralRe: Infinite for loops Pin
Mike Dimmick6-Mar-07 3:48
Mike Dimmick6-Mar-07 3:48 
GeneralRe: Infinite for loops Pin
RodgerB6-Mar-07 9:42
RodgerB6-Mar-07 9:42 

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.