Re: Is this a bug?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



My point was simply that how to express such a concept as a relative
position is something that falls into the purview of an arbitrary decision
on the part of the developer/designer/architect. The distance represents an
offset. The developers and/or architects made a decision.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"Michael C" <nospam@xxxxxxxxxx> wrote in message
news:%234m5RrkWGHA.4212@xxxxxxxxxxxxxxxxxxxxxxx
"Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
I would work this way because that is how it was designed to work. You're
a programmer, right? So, you create the business rules in your code,
right? So, if you say that a property which is positive results in a
result that appears negative, that is the way it works.

Ok, but in all my years of programming I've never seen a property like
this.

In this case, the result is a distance, although it could be either
horizontal or vertical, up, down, right or left. A distance is never
negative. Let's say that you and I are standing 3 feet apart, and you are
to my north. How far apart are we? (Hint: 3 feet)Now, you move to a
position 3 feet to my south. How far apart are we? (Hint: 3 feet) But are
you still in the same postion relative to the North Pole? (Hint: No) Is
your distance from me, or your distance from the North Pole, a negative
number? (Hint: No)

An old physics question is what is the difference between velocity and
speed? The answer is velocity has direction so can be positive or
negative, possibly in x,y and z (but not necessarily if the problem is
only 1D or 2D as is the case here). I'd say it's the same thing with
distance and length, distance has direction so can be positive or
negative, especially if the designers of the class so intended it be so
(which they did in this case). To pass in a value of +3 feet and get a
result of -3feet seems crazy to me.

Michael



.



Relevant Pages

  • Re: Is this a bug?
    ... a programmer, right? ... you still in the same postion relative to the North Pole? ... (Hint: No) ... your distance from me, or your distance from the North Pole, a negative ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Is this a bug?
    ... what I suspect is they found it was a bug so documented it into a feature. ... Or is there another reason it would work this way? ... A distance is never negative. ... (Hint: 3 feet) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: WARNING: AMD64 Daylight saving time issue.
    ... >>Equator to the North Pole, to the resolution of the wavelength of light, ... North Pole to Equator through Paris. ... to be one/ten-millionth of the distance of the North Pole ... we end up with an arbitrary metre anyway. ...
    (comp.unix.solaris)
  • Re: GPS
    ... >>position coordinace to distance? ... > distance traveled to the east would be less than an inch. ... And it's kind of elongated at the north pole. ... where they discovered the bulge. ...
    (sci.electronics.basics)
  • Re: Hitting the road
    ... Here's a hint for YOU - the sub-thread, and the question, were ... about shooting guns. ... distance as fast as possible) ...
    (rec.motorcycles)