Click here to Skip to main content
11,577,258 members (59,394 online)

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, embarrasing 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
ihoecken24-Jun-13 1:27
memberihoecken24-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
ihoecken24-Jun-13 2:01
memberihoecken24-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
memberStefan_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
memberMember 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...

string hi;
 
// some code

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

JokeRe: Hello? I guess Pin
Guirec Le Bars20-Jun-13 6:14
professionalGuirec Le Bars20-Jun-13 6:14 
GeneralRe: Hello? I guess Pin
krumia20-Jun-13 18:52
memberkrumia20-Jun-13 18:52 
GeneralRe: Hello? I guess Pin
Giuseppe Tollini21-Jun-13 6:06
memberGiuseppe Tollini21-Jun-13 6:06 
GeneralRe: Hello? I guess Pin
loctrice24-Jun-13 10:37
memberloctrice24-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
memberRob Grainger23-Jun-13 23:50 
GeneralRe: Hello? I guess Pin
Joan Murt30-Jun-13 21:03
professionalJoan Murt30-Jun-13 21:03 
GeneralRe: Hello? I guess Pin
ihoecken25-Jun-13 5:12
memberihoecken25-Jun-13 5:12 
GeneralRe: Hello? I guess Pin
vonb25-Jun-13 20:37
professionalvonb25-Jun-13 20:37 
JokeRe: Hello? I guess Pin
Killzone DeathMan28-Jun-13 5:34
groupKillzone DeathMan28-Jun-13 5:34 
GeneralHow not to catch the exception Pin
feeza_n3n19-Jun-13 23:32
memberfeeza_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
memberjim lahey20-Jun-13 1:55 
GeneralRe: How not to catch the exception Pin
jim lahey20-Jun-13 1:54
memberjim lahey20-Jun-13 1:54 
GeneralRe: How not to catch the exception Pin
GastonV20-Jun-13 3:09
memberGastonV20-Jun-13 3:09 
GeneralRe: How not to catch the exception Pin
Richard Deeming20-Jun-13 3:56
professionalRichard Deeming20-Jun-13 3:56 
GeneralRe: How not to catch the exception Pin
GastonV20-Jun-13 4:30
memberGastonV20-Jun-13 4:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 4 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid