• 30 Years Of JavaScript

    From Lawrence D'Oliveiro@21:1/5 to All on Thu Apr 24 01:52:06 2025
    OK, so the actual anniversary was back in March. But I just
    (re)discovered the InfoWorld site, and was surprised to discover it
    has become such a software-development-focused place (was it before?).

    This article <https://www.infoworld.com/article/3836901/10-things-developers-love-about-javascript-and-10-things-they-dont.html>
    goes over some of the things the author(s) love about JavaScript, and
    some things they don’t.

    In terms of punctuation, didn’t they know semicolons (at least as
    statement terminators) are optional in JavaScript? Yes, the rule is a
    bit more subtle than in Python, but even I, a Python programmer, was
    able to figure it out.

    Type conversion: this I do not love. Being able to compare integers
    and reals is natural and reasonably safe, bringing strings into the
    mix is not. There’s a reason why Python is able to get away with not
    needing a “===” operator, while JavaScript and PHP are not.

    Truthiness: yes, this is a pitfall, too. Languages should just take
    the Pascal route and insist that conditions be of Boolean type.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)