Click here to Skip to main content
15,867,835 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: What kind of car does a 50-year-old web developer drive? Pin
jkirkerx23-Mar-22 6:24
professionaljkirkerx23-Mar-22 6:24 
General(re) Hey lookee here ... a joke icon! Pin
Calin Negru21-Mar-22 8:28
Calin Negru21-Mar-22 8:28 
RantMicrosoft Rant of the Day Pin
DerekT-P21-Mar-22 7:57
professionalDerekT-P21-Mar-22 7:57 
QuestionRe: Microsoft Rant of the Day Pin
Randor 21-Mar-22 8:36
professional Randor 21-Mar-22 8:36 
AnswerRe: Microsoft Rant of the Day Pin
DerekT-P21-Mar-22 11:50
professionalDerekT-P21-Mar-22 11:50 
GeneralRe: Microsoft Rant of the Day Pin
Randor 21-Mar-22 12:01
professional Randor 21-Mar-22 12:01 
GeneralRe: Microsoft Rant of the Day Pin
obermd21-Mar-22 10:47
obermd21-Mar-22 10:47 
GeneralRe: Microsoft Rant of the Day Pin
DerekT-P21-Mar-22 13:05
professionalDerekT-P21-Mar-22 13:05 
I can find a Microsoft document that does indeed state the constructor with no parameters creates an instance "with no fields set". The description of other constructors (e.g. passing lat/lng values) does not mention that other fields are not set. In this case, GeoCoordinate uses NaN to mean "unknown". I feel it would make more sense to use double? (i.e. nullable) values anyway - which would also be supported by JSON.

However my main gripe is not that the fields are NaN, but that ASP.Net fails to serialise NaN values in a way that makes the output JSON invalid. Valid input should not generate invalid output. I recognise (belatedly!) that NaN is itself not supported by JSON but that doesn't change the fact that valid input should generate valid output. If it's unable to do so it should throw an exception, surely?

My other gripe is that the Accuracy fields are documented as Double, yet they are clearly not a "true" Double. You can assign a valid double value to it (i.e. zero) and yet after the assignment the value remains NaN. This is not the normal behaviour of a Double and as such it would be really, really, really helpful if it were documented. You can set it successfully to .000000000000001 but not to zero. It makes you wonder if there are other values it can't have...? (Oh, and I tried setting it to a negative value, just to see what happens; and it crashed the IIS Application Pool. It's now showing as "Stopped" but won't accept Start! Guess that's it's way of telling me to go to bed... Laugh | :laugh: Sleepy | :zzz: )
GeneralRe: Microsoft Rant of the Day Pin
obermd22-Mar-22 7:42
obermd22-Mar-22 7:42 
GeneralRe: Microsoft Rant of the Day Pin
obermd21-Mar-22 10:54
obermd21-Mar-22 10:54 
GeneralRe: Microsoft Rant of the Day Pin
Brisingr Aerowing21-Mar-22 14:59
professionalBrisingr Aerowing21-Mar-22 14:59 
GeneralRe: Microsoft Rant of the Day Pin
honey the codewitch22-Mar-22 1:10
mvahoney the codewitch22-Mar-22 1:10 
JokeTwo public officers ... Pin
0x01AA21-Mar-22 7:47
mve0x01AA21-Mar-22 7:47 
GeneralRe: Two public officers ... Pin
RobertSF21-Mar-22 10:04
professionalRobertSF21-Mar-22 10:04 
GeneralRe: Two public officers ... Pin
0x01AA21-Mar-22 10:19
mve0x01AA21-Mar-22 10:19 
GeneralRe: Two public officers ... Pin
RobertSF21-Mar-22 15:33
professionalRobertSF21-Mar-22 15:33 
GeneralHmmm. The new CP look ... I'm not sure I like it. Pin
OriginalGriff21-Mar-22 7:17
mveOriginalGriff21-Mar-22 7:17 
GeneralRe: Hmmm. The new CP look ... I'm not sure I like it. Pin
Slacker00721-Mar-22 7:27
professionalSlacker00721-Mar-22 7:27 
GeneralRe: Hmmm. The new CP look ... I'm not sure I like it. Pin
Marc Clifton21-Mar-22 9:20
mvaMarc Clifton21-Mar-22 9:20 
GeneralRe: Hmmm. The new CP look ... I'm not sure I like it. Pin
Richard MacCutchan21-Mar-22 7:34
mveRichard MacCutchan21-Mar-22 7:34 
GeneralRe: Hmmm. The new CP look ... I'm not sure I like it. Pin
Marc Clifton21-Mar-22 9:20
mvaMarc Clifton21-Mar-22 9:20 
GeneralRe: Hmmm. The new CP look ... I'm not sure I like it. Pin
Mike Hankey21-Mar-22 7:34
mveMike Hankey21-Mar-22 7:34 
GeneralRe: Hmmm. The new CP look ... I'm not sure I like it. Pin
OriginalGriff21-Mar-22 7:55
mveOriginalGriff21-Mar-22 7:55 
GeneralRe: Hmmm. The new CP look ... I'm not sure I like it. Pin
Mike Hankey21-Mar-22 8:01
mveMike Hankey21-Mar-22 8:01 
GeneralRe: Hmmm. The new CP look ... I'm not sure I like it. Pin
Slacker00721-Mar-22 9:43
professionalSlacker00721-Mar-22 9:43 

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.