Click here to Skip to main content
15,907,396 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: Yes I know it was me who wrote that... Pin
Argonia11-Dec-13 5:04
professionalArgonia11-Dec-13 5:04 
GeneralRe: Yes I know it was me who wrote that... Pin
Richard Deeming11-Dec-13 5:13
mveRichard Deeming11-Dec-13 5:13 
GeneralRe: Yes I know it was me who wrote that... Pin
Argonia11-Dec-13 5:16
professionalArgonia11-Dec-13 5:16 
GeneralRe: Yes I know it was me who wrote that... Pin
Rob Grainger17-Dec-13 1:30
Rob Grainger17-Dec-13 1:30 
GeneralRe: Yes I know it was me who wrote that... Pin
Richard Deeming11-Dec-13 4:09
mveRichard Deeming11-Dec-13 4:09 
GeneralRe: Yes I know it was me who wrote that... Pin
Jörgen Andersson11-Dec-13 20:16
professionalJörgen Andersson11-Dec-13 20:16 
GeneralRe: Yes I know it was me who wrote that... Pin
ledtech320-Dec-13 15:13
ledtech320-Dec-13 15:13 
GeneralRe: Yes I know it was me who wrote that... Pin
Vladimir Svyatski15-Jan-14 10:37
professionalVladimir Svyatski15-Jan-14 10:37 
I've been always wondering why people just don't use string comparison functions with the case ignoring ability. Many languages have them. Why use ToLower or ToUpper if you don't really need that lowered string? One my colleague once told me that because of the belovers of ToUpper/ToLower the program he had to improve was doing its job during about 11 hours (the program was in C++)!!! After just replacing the appropriate functions with stricmp and similar ones (which compare ignoring the case) the program got the awesome performance boost: it managed to finish its execution in just one hour or such. Taste the difference!
lifecycle of a lifecycle of a lifecycle

GeneralRe: Yes I know it was me who wrote that... Pin
phil.o12-Dec-13 23:03
professionalphil.o12-Dec-13 23:03 
GeneralRe: Yes I know it was me who wrote that... Pin
Nagy Vilmos12-Dec-13 23:27
professionalNagy Vilmos12-Dec-13 23:27 
GeneralRe: Yes I know it was me who wrote that... Pin
Richard Deeming13-Dec-13 1:36
mveRichard Deeming13-Dec-13 1:36 
GeneralRe: Yes I know it was me who wrote that... Pin
Nicholas Marty18-Dec-13 4:12
professionalNicholas Marty18-Dec-13 4:12 
GeneralDays Of Week Pin
Mohamad M. Mohamad29-Nov-13 22:10
Mohamad M. Mohamad29-Nov-13 22:10 
GeneralRe: Days Of Week Pin
Marco Bertschi29-Nov-13 23:54
protectorMarco Bertschi29-Nov-13 23:54 
GeneralRe: Days Of Week Pin
Mohamad M. Mohamad30-Nov-13 0:09
Mohamad M. Mohamad30-Nov-13 0:09 
GeneralRe: Days Of Week Pin
Marco Bertschi30-Nov-13 0:14
protectorMarco Bertschi30-Nov-13 0:14 
GeneralRe: Days Of Week Pin
Mohamad M. Mohamad30-Nov-13 0:19
Mohamad M. Mohamad30-Nov-13 0:19 
GeneralRe: Days Of Week Pin
Marco Bertschi30-Nov-13 0:37
protectorMarco Bertschi30-Nov-13 0:37 
GeneralRe: Days Of Week Pin
PIEBALDconsult30-Nov-13 5:37
mvePIEBALDconsult30-Nov-13 5:37 
GeneralRe: Days Of Week Pin
Maximilien30-Nov-13 2:03
Maximilien30-Nov-13 2:03 
GeneralRe: Days Of Week Pin
Richard Deeming2-Dec-13 0:35
mveRichard Deeming2-Dec-13 0:35 
GeneralRe: Days Of Week Pin
Mohamad M. Mohamad2-Dec-13 2:40
Mohamad M. Mohamad2-Dec-13 2:40 
GeneralRe: Days Of Week Pin
Richard Deeming2-Dec-13 2:52
mveRichard Deeming2-Dec-13 2:52 
GeneralRe: Days Of Week Pin
DJ van Wyk11-Dec-13 19:52
professionalDJ van Wyk11-Dec-13 19:52 
GeneralRe: Days Of Week Pin
PIEBALDconsult30-Nov-13 5:47
mvePIEBALDconsult30-Nov-13 5:47 

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.