Click here to Skip to main content
15,861,125 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: Why some of them (developers) dont confuse using Global variables heavily or they aren't aware of reality. Pin
Mohammed Hameed21-Jun-13 4:20
professionalMohammed Hameed21-Jun-13 4:20 
GeneralRe: Why some of them (developers) dont confuse using Global variables heavily or they aren't aware of reality. Pin
Ingo24-Jun-13 1:27
Ingo24-Jun-13 1:27 
GeneralRe: Why some of them (developers) dont confuse using Global variables heavily or they aren't aware of reality. Pin
Mohammed Hameed24-Jun-13 1:36
professionalMohammed Hameed24-Jun-13 1:36 
GeneralRe: Why some of them (developers) dont confuse using Global variables heavily or they aren't aware of reality. Pin
Ingo24-Jun-13 2:01
Ingo24-Jun-13 2:01 
GeneralRe: Why some of them (developers) dont confuse using Global variables heavily or they aren't aware of reality. Pin
Mohammed Hameed24-Jun-13 2:14
professionalMohammed Hameed24-Jun-13 2:14 
GeneralRe: Why some of them (developers) dont confuse using Global variables heavily or they aren't aware of reality. Pin
Stefan_Lang26-Jul-13 0:40
Stefan_Lang26-Jul-13 0:40 
GeneralRe: Why some of them (developers) dont confuse using Global variables heavily or they aren't aware of reality. Pin
Mohammed Hameed26-Jul-13 2:11
professionalMohammed Hameed26-Jul-13 2:11 
GeneralHello? I guess Pin
Member 970438320-Jun-13 3:11
Member 970438320-Jun-13 3:11 
I was looking at some legacy code that I re-wrote for a project and found this gem. There were also variables named bob, mike, jane etc...

C#
string hi;

// some code

if(true)
{
  hi = "hi";
}
else
{
  hi = "hi";
}

JokeRe: Hello? I guess Pin
Guirec20-Jun-13 6:14
professionalGuirec20-Jun-13 6:14 
GeneralRe: Hello? I guess Pin
krumia20-Jun-13 18:52
krumia20-Jun-13 18:52 
GeneralRe: Hello? I guess Pin
Giuseppe Tollini21-Jun-13 6:06
Giuseppe Tollini21-Jun-13 6:06 
GeneralRe: Hello? I guess Pin
loctrice24-Jun-13 10:37
professionalloctrice24-Jun-13 10:37 
GeneralRe: Hello? I guess Pin
Rajesh Anuhya25-Jun-13 1:36
professionalRajesh Anuhya25-Jun-13 1:36 
GeneralRe: Hello? I guess Pin
Rob Grainger23-Jun-13 23:50
Rob Grainger23-Jun-13 23:50 
GeneralRe: Hello? I guess Pin
Joan M30-Jun-13 21:03
professionalJoan M30-Jun-13 21:03 
GeneralRe: Hello? I guess Pin
Ingo25-Jun-13 5:12
Ingo25-Jun-13 5:12 
GeneralRe: Hello? I guess Pin
vonb25-Jun-13 20:37
vonb25-Jun-13 20:37 
JokeRe: Hello? I guess Pin
Killzone DeathMan28-Jun-13 5:34
Killzone DeathMan28-Jun-13 5:34 
GeneralHow not to catch the exception Pin
feeza_n3n19-Jun-13 23:32
feeza_n3n19-Jun-13 23:32 
GeneralRe: How not to catch the exception Pin
Mohammed Hameed20-Jun-13 0:32
professionalMohammed Hameed20-Jun-13 0:32 
GeneralRe: How not to catch the exception Pin
jim lahey20-Jun-13 1:55
jim lahey20-Jun-13 1:55 
GeneralRe: How not to catch the exception Pin
jim lahey20-Jun-13 1:54
jim lahey20-Jun-13 1:54 
GeneralRe: How not to catch the exception Pin
Gaston Verelst20-Jun-13 3:09
Gaston Verelst20-Jun-13 3:09 
GeneralRe: How not to catch the exception Pin
Richard Deeming20-Jun-13 3:56
mveRichard Deeming20-Jun-13 3:56 
GeneralRe: How not to catch the exception Pin
Gaston Verelst20-Jun-13 4:30
Gaston Verelst20-Jun-13 4:30 

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.