It's weird I can't see who replied to a post or easily mention a post on here with JavaScript disabled
>>22301If you have uBlock Origin:
https://github.com/gorhill/uBlock/wiki/Per-site-switches#no-scriptingwe should be making sites that use isomorphic rendering and rehydration to deliver websites that work with or without javascript and provide non-js fallback actions when applicable, that would be super cool and is totally doable – projects like nextjs even make it relatively easy. this is great for both privacy and backwards compatibility.
we should also be phasing out js and replacing it with wasm, and asm.js can provide a fallback when wasm isn't available.
none of this means we shouldn't have made javascript. despite being a rightoid who hates gay marriage, brendan eich gave us a very useful tool. a lot of the design decisions were *terrible* given the cathedrals that have been built on such shoddy foundations, but they were useful to get people not used to programming to be able to read and write code. all of this stupid implicit type casting can create nightmarish bugs in a large codebase if you fuck up somewhere and forget to expkicitly cast types yourself to get the behavior you expect, but for an ignorant teenager trying to hack code together it often does something useful. like, 1 *shouldn't* equal true, and i'm glad the strict equality operator doesn't implicitly cast it to bool like the old equality operator does, but i also get that an idiot checkjng whether or not a number is true usually wants to know if it is above 0 or not. the logic for adding empty objects is more ridiculous, but i still conceotually get that he was trying hard to avoid error states, and why.
while js does have less number types than a lot of languages, the wonkiness around number exactness is something that extends to number types in many languages (it's a float64). i appreciate that it looks weird to non- or new-programmers, but citing it as a quirk of javascript seems like a failure to appreciate how hard numbers are to manage at the level of hardware and how quickly everything would become unusable if we insisted on perfect precision.