Click here to Skip to main content
15,881,204 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: When the CEO becomes a developer I Pin
richard_k5-Nov-10 19:27
richard_k5-Nov-10 19:27 
GeneralWell it made me laugh anyway Pin
musefan29-Oct-10 6:33
musefan29-Oct-10 6:33 
GeneralRe: Well it made me laugh anyway Pin
Chris Meech29-Oct-10 6:51
Chris Meech29-Oct-10 6:51 
GeneralRe: Well it made me laugh anyway Pin
Jeroen De Dauw29-Oct-10 10:19
Jeroen De Dauw29-Oct-10 10:19 
GeneralRe: Well it made me laugh anyway PinPopular
Lutosław31-Oct-10 14:26
Lutosław31-Oct-10 14:26 
GeneralRe: Well it made me laugh anyway Pin
musefan2-Nov-10 23:45
musefan2-Nov-10 23:45 
GeneralIt's not the most horrible code but it is pointless Pin
Andy Brummer28-Oct-10 10:36
sitebuilderAndy Brummer28-Oct-10 10:36 
GeneralRe: It's not the most horrible code but it is pointless Pin
Pete O'Hanlon28-Oct-10 12:31
mvePete O'Hanlon28-Oct-10 12:31 
I just saw a piece of javascript today which effectively looked like this:
function check_somethingOrOther()
{
  someVariable = false;
  setTimeout("check_somethingOrOther()", 500);
}
Now, I know that someVariable was obviously meant to do something, but this is the only place in the code that it's actually used. Optimising this code was really simple.

I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

Forgive your enemies - it messes with their heads


My blog | My articles | MoXAML PowerToys | Onyx


GeneralRe: It's not the most horrible code but it is pointless Pin
Andy Brummer29-Oct-10 1:38
sitebuilderAndy Brummer29-Oct-10 1:38 
GeneralRe: It's not the most horrible code but it is pointless Pin
fjdiewornncalwe28-Oct-10 13:29
professionalfjdiewornncalwe28-Oct-10 13:29 
GeneralRe: It's not the most horrible code but it is pointless Pin
Al_Brown29-Oct-10 0:49
Al_Brown29-Oct-10 0:49 
GeneralRe: It's not the most horrible code but it is pointless Pin
fjdiewornncalwe29-Oct-10 4:07
professionalfjdiewornncalwe29-Oct-10 4:07 
GeneralRe: It's not the most horrible code but it is pointless Pin
QuiJohn29-Oct-10 4:14
QuiJohn29-Oct-10 4:14 
GeneralRe: It's not the most horrible code but it is pointless Pin
richard_k5-Nov-10 19:31
richard_k5-Nov-10 19:31 
GeneralIt's the small things that matter. Pin
puromtec127-Oct-10 17:24
puromtec127-Oct-10 17:24 
GeneralRe: It's the small things that matter. Pin
Stephen Hewitt27-Oct-10 19:07
Stephen Hewitt27-Oct-10 19:07 
GeneralRe: It's the small things that matter. Pin
OriginalGriff27-Oct-10 21:41
mveOriginalGriff27-Oct-10 21:41 
GeneralRe: It's the small things that matter. Pin
OriginalGriff27-Oct-10 21:44
mveOriginalGriff27-Oct-10 21:44 
GeneralRe: It's the small things that matter. Pin
puromtec128-Oct-10 4:16
puromtec128-Oct-10 4:16 
GeneralRe: It's the small things that matter. Pin
BillW3328-Oct-10 6:26
professionalBillW3328-Oct-10 6:26 
GeneralRe: It's the small things that matter. Pin
Al_Brown29-Oct-10 0:56
Al_Brown29-Oct-10 0:56 
GeneralRe: It's the small things that matter. Pin
puromtec131-Oct-10 17:16
puromtec131-Oct-10 17:16 
GeneralRe: It's the small things that matter. Pin
fjdiewornncalwe29-Oct-10 4:08
professionalfjdiewornncalwe29-Oct-10 4:08 
GeneralIt's not the most obvious piece of logic. PinPopular
Pete O'Hanlon22-Oct-10 11:51
mvePete O'Hanlon22-Oct-10 11:51 
GeneralRe: It's not the most obvious piece of logic. Pin
AspDotNetDev22-Oct-10 12:10
protectorAspDotNetDev22-Oct-10 12:10 

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.