Click here to Skip to main content
15,867,453 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: I hope this is not contagious... Pin
OriginalGriff26-Jun-12 8:48
mveOriginalGriff26-Jun-12 8:48 
GeneralRe: I hope this is not contagious... Pin
CDP180226-Jun-12 10:40
CDP180226-Jun-12 10:40 
GeneralRe: I hope this is not contagious... Pin
Brisingr Aerowing26-Jun-12 11:58
professionalBrisingr Aerowing26-Jun-12 11:58 
GeneralRe: I hope this is not contagious... Pin
Rajesh R Subramanian30-Jun-12 10:04
professionalRajesh R Subramanian30-Jun-12 10:04 
GeneralRe: I hope this is not contagious... Pin
Brisingr Aerowing1-Jul-12 12:15
professionalBrisingr Aerowing1-Jul-12 12:15 
GeneralRe: I hope this is not contagious... Pin
ignrod27-Jun-12 1:33
ignrod27-Jun-12 1:33 
GeneralRe: I hope this is not contagious... Pin
dakovinc27-Jun-12 2:35
dakovinc27-Jun-12 2:35 
GeneralRe: I hope this is not contagious... Pin
CDP180228-Jun-12 22:21
CDP180228-Jun-12 22:21 
The 'constants' actually are global variables and not constant at all. In web applications he usually (mis)uses the session for this. I can mail you some code if you ever want a scary example of how global variables can lead to an unpredictable mess.
At least artificial intelligence already is superior to natural stupidity



GeneralRe: I hope this is not contagious... Pin
Brisingr Aerowing29-Jun-12 7:16
professionalBrisingr Aerowing29-Jun-12 7:16 
GeneralRe: I hope this is not contagious... Pin
CDP180228-Jun-12 22:23
CDP180228-Jun-12 22:23 
GeneralRe: I hope this is not contagious... Pin
Bernhard Hiller28-Jun-12 21:55
Bernhard Hiller28-Jun-12 21:55 
GeneralRe: I hope this is not contagious... Pin
CDP180228-Jun-12 22:17
CDP180228-Jun-12 22:17 
GeneralString Comparison Pin
Rotted Frog25-Jun-12 18:26
Rotted Frog25-Jun-12 18:26 
GeneralRe: String Comparison Pin
Mohibur Rashid25-Jun-12 20:43
professionalMohibur Rashid25-Jun-12 20:43 
GeneralRe: String Comparison Pin
Nagy Vilmos25-Jun-12 21:59
professionalNagy Vilmos25-Jun-12 21:59 
GeneralRe: String Comparison Pin
Rotted Frog25-Jun-12 22:20
Rotted Frog25-Jun-12 22:20 
GeneralRe: String Comparison Pin
VallarasuS25-Jun-12 23:48
VallarasuS25-Jun-12 23:48 
GeneralRe: String Comparison Pin
AspDotNetDev26-Jun-12 8:53
protectorAspDotNetDev26-Jun-12 8:53 
GeneralRe: String Comparison Pin
Rahul Rajat Singh26-Jun-12 0:56
professionalRahul Rajat Singh26-Jun-12 0:56 
QuestionRe: String Comparison Pin
CoperNick26-Jun-12 12:36
CoperNick26-Jun-12 12:36 
GeneralRe: String Comparison Pin
ZurdoDev26-Jun-12 1:53
professionalZurdoDev26-Jun-12 1:53 
GeneralRe: String Comparison Pin
Vladimir Svyatski1-Jul-12 1:17
professionalVladimir Svyatski1-Jul-12 1:17 
GeneraldataTables to to gridView Pin
Michael Sernal25-Jun-12 8:10
Michael Sernal25-Jun-12 8:10 
JokeRe: dataTables to to gridView Pin
Albert Holguin25-Jun-12 17:38
professionalAlbert Holguin25-Jun-12 17:38 
GeneralRe: dataTables to to gridView Pin
ZurdoDev26-Jun-12 1:55
professionalZurdoDev26-Jun-12 1:55 

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.