News for hackers. Stuff that matters.
Re:Teaching the Unfortunate Parts by throw_m239339 on Monday December 28, 2020 @10:45PM (#25566508)
A lot of people are shocked by Javascript behavior, but the truth is, Javascript became successful BECAUSE it's a language that is(or was) incredibly forgiving thanks to its very weak typing and syntax and its behavior, trying to do everything in its power not to yield errors, or if an error happens in the browser, not propagate it so that an app that is 10% buggy can still run without blowing up (thanks to the event loop). In my book, that's certainly an achievement. IF I recall things correctly VBscript was stricter than Javascript, thus harder to write for people who didn't know what they were doing.
Re:Teaching the Unfortunate Parts by pwdisswordfish5 on Monday December 28, 2020 @11:13PM (#25566637)
JavaScript became successful simply because it was the only real choice, and it would have been so even if it were less permissive. VBScript’s failure stems mostly from the fact that only Microsoft supported it (and as I remember, it wasn't even particularly well documented).