There are truly no redeeming qualities about JS in my eyes. It’s poorly designed in every single way I can imagine. If I had to design JS as a language today, I’d make none of the same decisions.
It’s slow, it’s hard to read and write, it often produces buggy code because of the infinite edge cases in the type system, and it’s footgunny to the max. At least it’s memory safe. If C++ was memory safe, I’d legitimately say it’s a more sane and less footgunny language. Which is really saying something, because C++ sucks ass.
Sometimes I program in JS enough that I almost start to gaslight myself into thinking it’s sane. But then I program in C#, Java, go, even PHP and I remember… no wait, JS is actually insane. How do we even write reliable software in JS? The answer is we don’t, all the software is buggy as hell but it’s fine because it’s memory safe.
It’s slow, it’s hard to read and write, it often produces buggy code because of the infinite edge cases in the type system, and it’s footgunny to the max. At least it’s memory safe. If C++ was memory safe, I’d legitimately say it’s a more sane and less footgunny language. Which is really saying something, because C++ sucks ass.
Sometimes I program in JS enough that I almost start to gaslight myself into thinking it’s sane. But then I program in C#, Java, go, even PHP and I remember… no wait, JS is actually insane. How do we even write reliable software in JS? The answer is we don’t, all the software is buggy as hell but it’s fine because it’s memory safe.