There’s actually in theory all the pieces in place to use a different scripting language, because in the early days, there really were multiple. But yeah, the massive DOM API is only really standardized+implemented+documented for JS, so you don’t get around it in the end.
As the others said, though, WebAssembly is starting to become a thing and the JS boilerplate for calling the DOM API can be generated for you.
Sure, but you can get frameworks that generate that for you. I’ve written whole webpages in WASM without writing any JS.
You don’t get around reading JS documentation, though. Especially the DOM API is just documented as JS, and you basically hope that your framework makes it obvious enough how to write that in your non-JS language of choice.
Well, we don’t tend to do well with a “Why not both?” situation. We tend to select for the bare minimum, egoistic solution. Not having the egoistic solution available could genuinely help us, i.e. force us, to be less stupid about this…
Ah right, yeah, those are crap. I really don’t get why companies are willing to cheap out specifically with keyboards.
Like, it’s the tool your workers use all day. Even if they just type 5% faster on a proper keyboard, that pays for itself in no time.
I’m not arguing whether anything is wrong with it or not. You could literally be shredding bank notes as a hobby. If it makes you happy, I’m not arguing against.
I’m rather saying someone who’s confident in statistics doesn’t need arguing here. They’ll intrinsically know the chance of winning is effectively 0. As such, they assume that their money will go to charity. But since the lottery company keeps a cut as profit, giving it this way is just worse than giving to charity directly.
I don’t do that (again, too static for me), but I have larger meta-workspaces still, which group 20 workspaces each into very big, very distinct topics like “Orga” and “Work”.
I do feel like it’s good, though, when libraries optimize. Ideally, they don’t have much else to do than one thing really well anyways.
And with how many libraries modern applications pull in, you do eventually notice whether you’re in the Python ecosystem, where most libraries don’t care, or in the Rust ecosystem, where many libraries definitely overdo it. Because well, they also kind of don’t overdo it, since as a user of the library, you don’t see any of it, except the culmulative performance benefits.