Click here to Skip to main content
15,889,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: Let's REALLY make sure "4" isn't "5" Pin
Marc Clifton20-Oct-18 3:57
mvaMarc Clifton20-Oct-18 3:57 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
h3ph3st0s18-Oct-18 0:53
h3ph3st0s18-Oct-18 0:53 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
kalberts18-Oct-18 1:02
kalberts18-Oct-18 1:02 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
James Lonero19-Oct-18 11:34
James Lonero19-Oct-18 11:34 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
Bruce Patin18-Oct-18 3:50
Bruce Patin18-Oct-18 3:50 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
MikeTheFid18-Oct-18 4:03
MikeTheFid18-Oct-18 4:03 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
W Balboos, GHB18-Oct-18 8:15
W Balboos, GHB18-Oct-18 8:15 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
raddevus19-Oct-18 8:57
mvaraddevus19-Oct-18 8:57 
That is one sick puppy.
The person should be found, bound and brought out for public humiliation immediately.

We had something like the following in legacy code:
C#
for (x = 0; x <= 20;x++){
     unknownVariable = x;
}
unknownVariable = 55;
Dead | X|
That brings up so many questions. Was the dev trying to slow something down?
What is unknownVariable? Why did dev set it to the specific value of 55?
arghgghgghg!!!!
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
Ryan Peden25-Oct-18 5:09
professionalRyan Peden25-Oct-18 5:09 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
Nelek29-Oct-18 1:16
protectorNelek29-Oct-18 1:16 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
charlieg30-Oct-18 11:17
charlieg30-Oct-18 11:17 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
TheGreatAndPowerfulOz6-Nov-18 9:09
TheGreatAndPowerfulOz6-Nov-18 9:09 
Generalfriend: frequency to MIDI should be easy right? Pin
raddevus15-Oct-18 8:57
mvaraddevus15-Oct-18 8:57 
GeneralRe: friend: frequency to MIDI should be easy right? Pin
Rick York15-Oct-18 9:35
mveRick York15-Oct-18 9:35 
GeneralRe: friend: frequency to MIDI should be easy right? Pin
raddevus15-Oct-18 9:42
mvaraddevus15-Oct-18 9:42 
GeneralRe: friend: frequency to MIDI should be easy right? Pin
Rick York15-Oct-18 10:17
mveRick York15-Oct-18 10:17 
GeneralRe: friend: frequency to MIDI should be easy right? Pin
msk471115-Oct-18 22:50
msk471115-Oct-18 22:50 
GeneralRe: friend: frequency to MIDI should be easy right? Pin
raddevus16-Oct-18 2:08
mvaraddevus16-Oct-18 2:08 
GeneralRe: friend: frequency to MIDI should be easy right? Pin
Bernhard Hiller16-Oct-18 22:52
Bernhard Hiller16-Oct-18 22:52 
GeneralRe: friend: frequency to MIDI should be easy right? Pin
Marc Clifton16-Oct-18 1:24
mvaMarc Clifton16-Oct-18 1:24 
GeneralRe: friend: frequency to MIDI should be easy right? Pin
raddevus16-Oct-18 2:12
mvaraddevus16-Oct-18 2:12 
GeneralRe: friend: frequency to MIDI should be easy right? Pin
Storm-blade16-Oct-18 1:30
professionalStorm-blade16-Oct-18 1:30 
GeneralRe: friend: frequency to MIDI should be easy right? Pin
raddevus16-Oct-18 2:13
mvaraddevus16-Oct-18 2:13 
GeneralRe: friend: frequency to MIDI should be easy right? Pin
Rick York16-Oct-18 5:32
mveRick York16-Oct-18 5:32 
GeneralRe: friend: frequency to MIDI should be easy right? Pin
raddevus16-Oct-18 8:35
mvaraddevus16-Oct-18 8:35 

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.