Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #124392
| From | Lawrence D'Oliveiro <ldo@nz.invalid> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | 30 Years Of JavaScript |
| Date | 2025-04-24 01:52 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <vuc5g5$dmqd$1@dont-email.me> (permalink) |
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.
Back to comp.lang.javascript | Previous | Next | Find similar
30 Years Of JavaScript Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-24 01:52 +0000
csiph-web