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: Undoubtedly this is my own ignorance in glorious action but... Pin
Matt U.5-Aug-13 8:10
Matt U.5-Aug-13 8:10 
GeneralRe: Undoubtedly this is my own ignorance in glorious action but... Pin
Andy Bantly5-Aug-13 9:22
Andy Bantly5-Aug-13 9:22 
GeneralRe: Undoubtedly this is my own ignorance in glorious action but... Pin
Matt U.5-Aug-13 10:02
Matt U.5-Aug-13 10:02 
GeneralRe: Undoubtedly this is my own ignorance in glorious action but... Pin
Andy Bantly6-Aug-13 10:54
Andy Bantly6-Aug-13 10:54 
GeneralSo you think you know what double.Parse does? Pin
harold aptroot2-Aug-13 23:27
harold aptroot2-Aug-13 23:27 
GeneralRe: So you think you know what double.Parse does? Pin
PIEBALDconsult3-Aug-13 5:31
mvePIEBALDconsult3-Aug-13 5:31 
GeneralRe: So you think you know what double.Parse does? Pin
Dennis_E4-Aug-13 8:25
professionalDennis_E4-Aug-13 8:25 
GeneralRe: So you think you know what double.Parse does? Pin
harold aptroot4-Aug-13 9:07
harold aptroot4-Aug-13 9:07 
Well the problem is not so much that zero can't be negative, because zero can be negative in C#, if it has a floating point type.
The problem I have with this is that it's inconsistent and weird that writing a certain number in the source and parsing it from a string give different results.
Not even just some least-significant bit, but the sign. That's a pretty big deal.

modified 4-Aug-13 15:49pm.

GeneralRe: So you think you know what double.Parse does? Pin
Dennis_E7-Aug-13 7:38
professionalDennis_E7-Aug-13 7:38 
GeneralRe: So you think you know what double.Parse does? Pin
harold aptroot7-Aug-13 7:51
harold aptroot7-Aug-13 7:51 
GeneralRe: So you think you know what double.Parse does? Pin
Rob Grainger15-Aug-13 0:18
Rob Grainger15-Aug-13 0:18 
GeneralRe: So you think you know what double.Parse does? Pin
AlphaDeltaTheta4-Aug-13 20:50
AlphaDeltaTheta4-Aug-13 20:50 
GeneralRe: So you think you know what double.Parse does? Pin
Lutosław6-Aug-13 10:56
Lutosław6-Aug-13 10:56 
GeneralRe: So you think you know what double.Parse does? Pin
harold aptroot6-Aug-13 10:59
harold aptroot6-Aug-13 10:59 
GeneralRe: So you think you know what double.Parse does? Pin
Lutosław6-Aug-13 11:15
Lutosław6-Aug-13 11:15 
GeneralRe: So you think you know what double.Parse does? Pin
ExcellentOrg21-Aug-13 0:07
ExcellentOrg21-Aug-13 0:07 
GeneralFace, meet palm... Pin
Dave Kreskowiak2-Aug-13 9:45
mveDave Kreskowiak2-Aug-13 9:45 
GeneralRe: Face, meet palm... Pin
lewax002-Aug-13 10:22
lewax002-Aug-13 10:22 
GeneralBest Function Ever Pin
LNogueira2-Aug-13 6:20
LNogueira2-Aug-13 6:20 
GeneralRe: Best Function Ever Pin
Sentenryu2-Aug-13 6:44
Sentenryu2-Aug-13 6:44 
GeneralRe: Best Function Ever PinPopular
Ravi Bhavnani2-Aug-13 7:08
professionalRavi Bhavnani2-Aug-13 7:08 
GeneralRe: Best Function Ever Pin
ZurdoDev2-Aug-13 8:03
professionalZurdoDev2-Aug-13 8:03 
GeneralRe: Best Function Ever Pin
Paul M Watt2-Aug-13 7:58
mentorPaul M Watt2-Aug-13 7:58 
GeneralRe: Best Function Ever Pin
Andy Bantly5-Aug-13 7:56
Andy Bantly5-Aug-13 7:56 
GeneralRe: Best Function Ever Pin
Mohibur Rashid19-Aug-13 17:37
professionalMohibur Rashid19-Aug-13 17:37 

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.