Click here to Skip to main content
15,306,900 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.

 
GeneralWell, no one is insured :) Pin
Georgi Atanasov14-Sep-07 9:28
MemberGeorgi Atanasov14-Sep-07 9:28 
GeneralRe: Well, no one is insured :) Pin
David Crow17-Sep-07 7:28
MemberDavid Crow17-Sep-07 7:28 
GeneralType conversion Pin
WillemM14-Sep-07 0:36
MemberWillemM14-Sep-07 0:36 
GeneralRe: Type conversion Pin
Chris Meech14-Sep-07 1:43
MemberChris Meech14-Sep-07 1:43 
GeneralRe: Type conversion Pin
Pete O'Hanlon14-Sep-07 4:07
mvaPete O'Hanlon14-Sep-07 4:07 
GeneralRe: Type conversion Pin
Dave Kreskowiak14-Sep-07 5:18
mveDave Kreskowiak14-Sep-07 5:18 
JokeRe: Type conversion Pin
Russell'14-Sep-07 7:33
MemberRussell'14-Sep-07 7:33 
GeneralRe: Type conversion Pin
PIEBALDconsult14-Sep-07 4:29
professionalPIEBALDconsult14-Sep-07 4:29 
There was some SQL I had to maintain a few years back where the original programmer had done something like ToChar(ToChar(datevalue)) (I forget the exact syntax, it was RDB) several times.

The guy who'd been maintaining said things like: "It's always been like that.", "It ain't broke.", and "He said it wouldn't work otherwise."

I darn well fixed it anyway. With that and some other changes the program ran in ten minutes instead of forty.
GeneralRe: Type conversion Pin
StevenWalsh14-Sep-07 9:01
MemberStevenWalsh14-Sep-07 9:01 
GeneralRe: Type conversion Pin
WillemM16-Sep-07 2:47
MemberWillemM16-Sep-07 2:47 
General#if NOT_USED Pin
pbraun13-Sep-07 12:15
Memberpbraun13-Sep-07 12:15 
GeneralRe: #if NOT_USED Pin
PIEBALDconsult13-Sep-07 14:24
professionalPIEBALDconsult13-Sep-07 14:24 
GeneralRe: #if NOT_USED Pin
Chris Meech14-Sep-07 1:47
MemberChris Meech14-Sep-07 1:47 
GeneralRe: #if NOT_USED Pin
Pete O'Hanlon14-Sep-07 4:08
mvaPete O'Hanlon14-Sep-07 4:08 
GeneralRe: #if NOT_USED Pin
PIEBALDconsult14-Sep-07 4:32
professionalPIEBALDconsult14-Sep-07 4:32 
GeneralRe: #if NOT_USED Pin
Chris Meech14-Sep-07 4:39
MemberChris Meech14-Sep-07 4:39 
GeneralRe: #if NOT_USED Pin
Pete O'Hanlon14-Sep-07 4:47
mvaPete O'Hanlon14-Sep-07 4:47 
GeneralRe: #if NOT_USED Pin
PIEBALDconsult14-Sep-07 5:15
professionalPIEBALDconsult14-Sep-07 5:15 
GeneralRe: #if NOT_USED Pin
pbraun14-Sep-07 5:40
Memberpbraun14-Sep-07 5:40 
GeneralRe: #if NOT_USED Pin
jibalt14-Aug-15 12:39
Memberjibalt14-Aug-15 12:39 
GeneralRe: #if NOT_USED Pin
jibalt14-Aug-15 12:37
Memberjibalt14-Aug-15 12:37 
GeneralRe: #if NOT_USED Pin
Russell'14-Sep-07 9:24
MemberRussell'14-Sep-07 9:24 
GeneralRe: #if NOT_USED Pin
Lutosław19-Sep-07 3:52
MemberLutosław19-Sep-07 3:52 
GeneralRe: #if NOT_USED Pin
Russell'19-Sep-07 4:04
MemberRussell'19-Sep-07 4:04 
Generalif if if if if if Pin
Rajesh R Subramanian10-Sep-07 20:42
professionalRajesh R Subramanian10-Sep-07 20:42 

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.