▲ | gavmor 3 days ago | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A lot of the jokes about JavaScript being messy come from historical quirks—like loose equality, type coercion oddities, or the way `this` behaves—but the ECMAScript specification has been steadily improved over the years by ECMA TC39 (the committee responsible for developing the standard). Likewise PHP has been somewhat inconsistent historically and carries its own legacy quirks—but it's JS that gets mocked, because why? Meanwhile Java—although designed with a cohesive strict, statically typed, object-oriented sensibility—has seen fit to add lambda expressions, stream APIs, record types, and pattern matching, following some of the same trends as ECMA TC39. So, when it comes to developer ergonomics—which, I daresay, is the subject of this satire and the preeminent aspect of a language most hotly debated—does JS really deserve the hate? There must be some other current of thought—some dark matter—warping the discourse. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | edem 3 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
You don't have to use PHP so there is no reason to mock it. You just know it is shit and you move on. Unfortunately you __have to__ use javascript sometimes (or always) so there is reason to mock it. That's the reason why people always mock JS. It is omnipresent and you have to touch it with your bare hands. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | archerx 3 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PHP has been relentlessly mocked for the past decade, there were websites dedicated to making fun of its quirks. Things only started turning around after PHP 7. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | dahart 2 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Note the date: 2016, almost 10 years ago. When I started doing actual web development in like 2014, I’d been using C++ for a couple of decades and it was somewhat of a surprise to me that JavaScript was a real language, because of the low reputation it had among C++ programmers. I didn’t even know JS had conceptual origins tied to Scheme, or I’d have been interested earlier. I hadn’t been aware how amazingly good the dev tools in the browser I used had become, with a debugger and profiler just sitting there. This was all before promises and React and Yarn. I discovered the C++ programmers were mostly wrong and JS had evolved far beyond the misconceptions many people had about it. I think today most C++ programmers are much more aware that JS is a decent functional language that is quite fast and is omnipresent in all browsers. To be fair, the NPM ecosystem was a dumpster fire in many ways. OTOH, this comedy article is just a huge list of hot takes, and language hate has been a pastime of many a web comic, but the mockery has done almost nothing to stop people from using languages. |