Click here to Skip to main content
15,900,461 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: Is it just me? Pin
OriginalGriff16-Jan-18 3:05
mveOriginalGriff16-Jan-18 3:05 
GeneralRe: Is it just me? Pin
Richard MacCutchan16-Jan-18 3:07
mveRichard MacCutchan16-Jan-18 3:07 
GeneralRe: Is it just me? Pin
Richard MacCutchan16-Jan-18 3:08
mveRichard MacCutchan16-Jan-18 3:08 
GeneralRe: Is it just me? Pin
OriginalGriff16-Jan-18 4:32
mveOriginalGriff16-Jan-18 4:32 
GeneralRe: Is it just me? Pin
Jochen Arndt16-Jan-18 3:09
professionalJochen Arndt16-Jan-18 3:09 
GeneralRe: Is it just me? Pin
Munchies_Matt16-Jan-18 20:47
Munchies_Matt16-Jan-18 20:47 
GeneralRe: Is it just me? Pin
Jacquers16-Jan-18 22:01
Jacquers16-Jan-18 22:01 
GeneralStroustrup on NASA's loss of $654 million Mars Climate Orbiter Pin
raddevus16-Jan-18 2:28
mvaraddevus16-Jan-18 2:28 
Maybe you've heard about this before, but it is very interesting.
It's a good example of the need for "code organization / code management" that you get from higher-level languages and OOP.
Bjarne Stroustrup wrote:
On 23 September 1999, NASA lost its US$654 million
Mars Climate Orbiter due to a navigation error. “The root
cause for the loss of the MCO spacecraft was the failure
to use metric units
in the coding of a ground software
file, ‘Small Forces,’ used in trajectory models. Specifically,
thruster performance data in English units instead
of metric units was used.”5
The amount of work lost was
roughly equivalent to the lifetime’s work of 200 good engineers
.
In reality, the cost is even higher because we’re
deprived of the mission’s scientific results until (and if) it
can be repeated. The really galling aspect is that we were
all taught how to avoid such errors in high school
: “Always
make sure the units are correct in your computations.”

Why didn’t the NASA engineers do that? They’re indisputably
experts in their field, so there must be good reasons.
No mainstream programming language supports units,
but every general-purpose language allows a programmer
to encode a value as a {quantity,unit} pair. We can
encode enough of the ISO standard SI units (meters, kilograms,
seconds, and so on) in an integer to deal with all
of NASA’s needs, but we don’t because that would almost
double the size of our data. Furthermore, checking the
units in every computation would more than double the
amount of computation needed.
Space probes tend to be both memory and compute
limited, so the engineers—just as essentially everyone else
in their situation has done—decided to keep track of the
units themselves (in their heads, in the comments, and
in the documentation)
.

In this case, they lost.

From http://www.stroustrup.com/Software-for-infrastructure.pdf[^]
GeneralRe: Stroustrup on NASA's loss of $654 million Mars Climate Orbiter PinPopular
OriginalGriff16-Jan-18 2:43
mveOriginalGriff16-Jan-18 2:43 
GeneralRe: Stroustrup on NASA's loss of $654 million Mars Climate Orbiter Pin
raddevus16-Jan-18 2:47
mvaraddevus16-Jan-18 2:47 
GeneralRe: Stroustrup on NASA's loss of $654 million Mars Climate Orbiter Pin
BGArts17-Jan-18 5:54
BGArts17-Jan-18 5:54 
GeneralRe: Stroustrup on NASA's loss of $654 million Mars Climate Orbiter Pin
Mike Hankey16-Jan-18 3:06
mveMike Hankey16-Jan-18 3:06 
GeneralRe: Stroustrup on NASA's loss of $654 million Mars Climate Orbiter Pin
Gary Huck17-Jan-18 3:04
Gary Huck17-Jan-18 3:04 
GeneralRe: Stroustrup on NASA's loss of $654 million Mars Climate Orbiter Pin
KarstenK16-Jan-18 3:14
mveKarstenK16-Jan-18 3:14 
GeneralRe: Stroustrup on NASA's loss of $654 million Mars Climate Orbiter Pin
wout de zeeuw16-Jan-18 3:54
wout de zeeuw16-Jan-18 3:54 
GeneralRe: Stroustrup on NASA's loss of $654 million Mars Climate Orbiter Pin
ddt_tdd16-Jan-18 21:28
ddt_tdd16-Jan-18 21:28 
GeneralRe: Stroustrup on NASA's loss of $654 million Mars Climate Orbiter Pin
Gary Wheeler17-Jan-18 2:09
Gary Wheeler17-Jan-18 2:09 
GeneralRe: Stroustrup on NASA's loss of $654 million Mars Climate Orbiter Pin
raddevus17-Jan-18 3:08
mvaraddevus17-Jan-18 3:08 
GeneralRe: Stroustrup on NASA's loss of $654 million Mars Climate Orbiter Pin
Abbas A. Ali18-Jan-18 1:04
professionalAbbas A. Ali18-Jan-18 1:04 
GeneralRe: Stroustrup on NASA's loss of $654 million Mars Climate Orbiter Pin
raddevus18-Jan-18 1:55
mvaraddevus18-Jan-18 1:55 
GeneralRe: Stroustrup on NASA's loss of $654 million Mars Climate Orbiter Pin
Stuart Dootson16-Jan-18 23:50
professionalStuart Dootson16-Jan-18 23:50 
GeneralRe: Stroustrup on NASA's loss of $654 million Mars Climate Orbiter Pin
molesworth17-Jan-18 1:53
molesworth17-Jan-18 1:53 
GeneralRe: Stroustrup on NASA's loss of $654 million Mars Climate Orbiter Pin
raddevus17-Jan-18 2:49
mvaraddevus17-Jan-18 2:49 
GeneralRe: Stroustrup on NASA's loss of $654 million Mars Climate Orbiter Pin
James Lonero17-Jan-18 6:18
James Lonero17-Jan-18 6:18 
GeneralRe: Stroustrup on NASA's loss of $654 million Mars Climate Orbiter Pin
firegryphon17-Jan-18 9:41
firegryphon17-Jan-18 9:41 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   488 votes