Click here to Skip to main content
15,881,688 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: Whats wrong with this code??? Pin
Ankush Bansal14-Oct-13 23:01
Ankush Bansal14-Oct-13 23:01 
GeneralRe: Whats wrong with this code??? Pin
OriginalGriff14-Oct-13 23:47
mveOriginalGriff14-Oct-13 23:47 
GeneralRe: Whats wrong with this code??? Pin
Sentenryu15-Oct-13 0:47
Sentenryu15-Oct-13 0:47 
GeneralRe: Whats wrong with this code??? Pin
ENOTTY15-Oct-13 1:37
ENOTTY15-Oct-13 1:37 
GeneralRe: Whats wrong with this code??? Pin
Sentenryu15-Oct-13 9:11
Sentenryu15-Oct-13 9:11 
GeneralRe: Whats wrong with this code??? Pin
harold aptroot16-Oct-13 2:22
harold aptroot16-Oct-13 2:22 
GeneralRe: Whats wrong with this code??? Pin
Vasudevan Deepak Kumar16-Oct-13 23:02
Vasudevan Deepak Kumar16-Oct-13 23:02 
GeneralRe: Whats wrong with this code??? Pin
Rob Grainger23-Oct-13 0:59
Rob Grainger23-Oct-13 0:59 
Actually, that's designed to convert a string to double, the code in question is designed to convert objects to double - including explicitly ints.

You're not suggesting the way to convert an integer to a double is as follows are you?

1. Convert the int to a string.
2. Convert the string to a double.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.

GeneralEMail Fail Pin
Brisingr Aerowing10-Oct-13 10:40
professionalBrisingr Aerowing10-Oct-13 10:40 
GeneralRe: EMail Fail Pin
Rage11-Oct-13 0:15
professionalRage11-Oct-13 0:15 
GeneralRe: EMail Fail Pin
Brisingr Aerowing11-Oct-13 0:24
professionalBrisingr Aerowing11-Oct-13 0:24 
GeneralRe: EMail Fail Pin
Silvabolt11-Oct-13 4:26
Silvabolt11-Oct-13 4:26 
GeneralI just want to be really really sure Pin
AnalogNerd8-Oct-13 7:40
AnalogNerd8-Oct-13 7:40 
GeneralRe: I just want to be really really sure Pin
Richard Deeming8-Oct-13 8:10
mveRichard Deeming8-Oct-13 8:10 
GeneralRe: I just want to be really really sure Pin
AnalogNerd8-Oct-13 8:31
AnalogNerd8-Oct-13 8:31 
GeneralRe: I just want to be really really sure Pin
OriginalGriff8-Oct-13 9:07
mveOriginalGriff8-Oct-13 9:07 
JokeRe: I just want to be really really sure Pin
Richard C Bishop8-Oct-13 9:53
professionalRichard C Bishop8-Oct-13 9:53 
JokeRe: I just want to be really really sure Pin
_Maxxx_8-Oct-13 15:40
professional_Maxxx_8-Oct-13 15:40 
GeneralRe: I just want to be really really sure Pin
Argonia8-Oct-13 20:11
professionalArgonia8-Oct-13 20:11 
GeneralRe: I just want to be really really sure Pin
_Maxxx_8-Oct-13 20:32
professional_Maxxx_8-Oct-13 20:32 
GeneralRe: I just want to be really really sure Pin
Robert Rohde14-Oct-13 11:01
Robert Rohde14-Oct-13 11:01 
GeneralRe: I just want to be really really sure Pin
Argonia14-Oct-13 20:19
professionalArgonia14-Oct-13 20:19 
GeneralRe: I just want to be really really sure Pin
contracting19909-Oct-13 4:06
contracting19909-Oct-13 4:06 
GeneralRe: I just want to be really really sure Pin
Gary R. Wheeler10-Oct-13 14:51
Gary R. Wheeler10-Oct-13 14:51 
GeneralRe: I just want to be really really sure Pin
MacSpudster5-Nov-13 5:36
professionalMacSpudster5-Nov-13 5:36 

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.