Re:NPM: 429 Too Many Requests
by wbl on Monday February 17, 2020 @09:29AM
(#22347897)
Javascript is a far better designed language than PHP. The identifiers don't have lengths picked because the maintainer used length as a hash function to name one notorious feature.
[ Parent
| on HN ]
Re:NPM: 429 Too Many Requests
by vhakulinen on Monday February 17, 2020 @10:03AM
(#22348118)
Thats just one data point, and for which you could argue that javascript has not one, but two null values: null and undefined.
PHP got (or is getting?) type hinting, while javascript doesn't have such thing (typescript or flow doesn't count). Javascript is event loop based, while PHP is (afaik) request->response based. These days, javascript usually is compiled for web, while PHP just sits there on the server and you can swap out the source files when you upgrade. You could go on and on.