Some of you might be going: woah, 'on mouseUp'? That sounds eerily familiar. This is where all that stuff came from.This is making me feel a lot older than I am.
NaN != NaN or typeof null). But it's never bothered me to have to invoke the Math object for operations, case-sensitivity is hardly unique or even inarguably poor idea, and debugging tools have been pretty good over the last few years (and even as far back as 2003, I was looking at script debuggers and error consoles with meaningful messages). And the first-class functions, dynamic objects, easy literals, the flexibility of the prototype-based object system... they're all lovely enough I find myself happy to write in the language more often than I find myself cursing the warts. I don't want to encourage people to think "oh double precision then I don't have to worry about precision." I want them to fucking figure out how the math works. I want the language to make them figure it out. I don't want it to try to do it for them because it's a computer language, not a person, and it absolutely will do the figuring out wrong some day.OMG that's definitely a reasonable requirement for SCRIPTING WEB PAGES.
. It's exactly like some guys I know doing embedded in another field who did exactly the same thing, "Oh we'll just throw double precision at it and then we won't have to worry about accuracy requirements." Only they did this on a 80186 so it crawled and THEN they didn't know about the rounding thing and it created something that would have been kind of like the Toyota acceleration thing if our industry made cars.What's the "Toyota acceleration thing" of CLIENT SIDE WEB SCRIPTING?
So why was I using Javascript? I needed a scale to be remotely controlled by multiple operators, and the easiest way to accomplish that was by making the remote control a web app getting its data from an AnyBus-S card in the scale. The paperwork (which they print from the browser) is still pretty important, most of the business logic is in Javascript because the AnyBus card is not smart enough to much server side processing, and it has to be right or the lawsuit dragon will fly.I remember back when the first Java SDK came out. It said right in the license you couldn't use it for anything where lives were at stake. I'm not sure they still have that in the license any more.
« Older Honk if you've missed a payment... | Move over Jedward. Ireland's m... Newer »
This thread has been archived and is closed to new comments
hallowed be thy name
thy script tags come
they execution contexts be done
in the user's browser
as it is in mine
posted by GuyZero at 4:59 PM on March 18, 2010 [4 favorites]