Re:Resources about programming practices for writing safety-...
by jononor on Tuesday March 07, 2017 @01:49AM
(#13808734)
Don't pass numbers between programs without units.
[ Parent
| on HN ]
Re:Resources about programming practices for writing safety-...
by greenhouse_gas on Tuesday March 07, 2017 @03:18PM
(#13814357)
The issue wasn't units. It was a break in (programming) "contract". Catching such bugs could introduce further (logic related string parsing) bugs.
A much more robust method (especially considering that this table was prepared in advance) would have been to have someone else to independently duplicate the work and compare results.
Re:Resources about programming practices for writing safety-...
by myst on Tuesday March 07, 2017 @03:25AM
(#13809031)
Don't use non SI units.
Re:Resources about programming practices for writing safety-...
by planteen on Tuesday March 07, 2017 @02:31PM
(#13813844)
That doesn't solve everything. There are still textbooks published that use CGS instead of MKS units. Both of those are metric. Non-SI units are widely used in space (e.g., arcseconds).
Re:Resources about programming practices for writing safety-...
by Mikhail_Edoshin on Tuesday March 07, 2017 @01:37PM
(#13813224)
People use non-SI units.