News for hackers. Stuff that matters.
Re:Ask HN: What programming language do you think is the bes... by ElfinTrousers on Friday October 07, 2022 @08:39AM (#33120396)
JS is ubiquitous. It's also a primitive, sloppily-designed language that has caused untold economic damage. It's not as bad a language as, say, Perl, but it might be the single biggest thing holding back the Web as a platform today.

I do understand that it's not entirely fair to criticize it for being sloppy, since it was supposed to only be a stopgap to be used for a few years in the 1990s until the hypothetical better language came along. Perhaps WASM means this long wait is finally over, but I don't want to get my hopes up.

Re:Ask HN: What programming language do you think is the bes... by gorjusborg on Friday October 07, 2022 @08:53AM (#33120562)
I'd say javascript is the new Perl (I used to love writing perl way back). It is undoubtedly useful, but can be horrific to read. It is heavily used to get things done in a pragmatic way.

The difference I see is that it will not likely die as quickly and quietly due to how distributed the code is.

Re:Ask HN: What programming language do you think is the bes... by ElfinTrousers on Friday October 07, 2022 @10:13AM (#33121623)
Now that you mention it, the resemblance is pretty clear. I also have to admit that I agree that we probably are stuck with it for the future. There are languages I think much more highly of that compile to WASM, and that's a technique that I plan to use and that I anticipate gaining traction. But there's just so much JS around.
Re:Ask HN: What programming language do you think is the bes... by forgotmypw17 on Friday October 07, 2022 @06:50PM (#33127884)
I do love Perl and JS for the same reasons: You can write something and be sure it will keep working. It is not customary to introduce breaking changes.
Re:Ask HN: What programming language do you think is the bes... by ElfinTrousers on Saturday October 08, 2022 @10:19PM (#33137762)
...Do you write in lots of languages that add breaking changes without warning? I don't.
Re:Ask HN: What programming language do you think is the bes... by forgotmypw17 on Saturday October 08, 2022 @11:39PM (#33138072)
I have encountered it with many languages. There is usually a warning, but there is also a lack of consent on my part, and a lack of options to retain compatibility.

For example, with most Python-based projects I have tried, I have run into some kind of version incompatibility, and often have not been able to get them to run at all.

This is an experience I wanted to avoid for those who try my software.

Re:Ask HN: What programming language do you think is the bes... by ElfinTrousers on Monday October 10, 2022 @10:25AM (#33151810)
> Python

Aha, there's your problem.

Re:Ask HN: What programming language do you think is the bes... by forgotmypw17 on Sunday October 16, 2022 @12:02AM (#33220933)
That's exactly what I was talking about, and why I chose Perl as the "top-level" language for my project over Python, despite Python being very popular.
Re:Ask HN: What programming language do you think is the bes... by ElfinTrousers on Tuesday October 18, 2022 @01:11PM (#33250676)
That would certainly be one solution.