Why decimal?

Breton Slivka zen at zenpsycho.com
Wed Jun 24 04:01:39 PDT 2009


People generally expect math to work how they've been taught in
school. When javascript violates their expectations, that is the very
definition of a bug.

It is true that binary might be more precise for certain kinds of
applications, and if it's a native machine type there's performance
advantages.

 These are facts that a novice programmer does not know or care about
in the slightest. All they know is that even their desktop calculator
can do this work properly, it must be javascript, or apple, or
whatever that is broken. This is obvious to anyone that doesn't look
at the world through nerd colored glasses. It's a fact so painful that
microsoft even went to the trouble of pouring in an epic amount of
research and development into their calc.exe so it doesn't display
this broken looking behavior, as it displayed in earlier versions. A
programmer might take the trouble to learn these esoteric computer
facts, but end users won't.

A less informed programmer might not even notice anything is wrong,
until some unsuspecting user comes across it. Depending on the
programmer, they may not know how to deal with it.

And finally, it's highly likely that javascript will be used more and
more on the server side in years to come, so javascript being a
"client side" language no longer works as a credible excuse.


More information about the es-discuss mailing list