News for hackers. Stuff that matters.
Re:Microsoft rewrote Q# compiler in Rust by ohgodplsno on Wednesday June 21, 2023 @05:11PM (#36424591)
Begin?

The entire reason we have people trying to cram JavaScript everywhere is that, for some reason, it sparks joy for them.

Hell, even going back, K&R vs Allman brace style was about what sparked joy. Color themes? Spark joy. At this point, I am convinced that the way to get a software developer to do anything is to just play on that need for joy.

Re:Microsoft rewrote Q# compiler in Rust by insanitybit on Wednesday June 21, 2023 @05:20PM (#36424738)
> The entire reason we have people trying to cram JavaScript everywhere is that, for some reason, it sparks joy for them.

Wait really? I feel like it's just "you literally have no choice for frontend" and the various side effects of that.

Re:Microsoft rewrote Q# compiler in Rust by ohgodplsno on Wednesday June 21, 2023 @05:30PM (#36424884)
That would explain frontend, yes. But that would not explain NodeJS, JavaScript for embedded microcontrollers, and so many more.

Some might say it's Stockholm syndrome, but then there's the Python developers doing the same thing everywhere. And the LISP enthusiasts. So unless there's a lot of Stockholm syndrome (although it's not out of the question when it comes to LISP), a lot of it is easily explained by "me like language here, me go put language elsewhere to keep language"

Re:Microsoft rewrote Q# compiler in Rust by sudodude on Wednesday June 21, 2023 @07:30PM (#36426191)
I think that's just entrenchment at work. When the majority of your developers only know x languages, and one of them is always js, you tend to work by the lowest comments denominator and the tools that everyone can work with are the ones that stick.
Re:Microsoft rewrote Q# compiler in Rust by Turskarama on Wednesday June 21, 2023 @07:33PM (#36426218)
You're overthinking it. We have Javascript on the server because Javascript was a very commonly known language already (due to being the only choice for web) and the average programmer (one who doesn't post on these forums) is not going to bother to learn another language if they don't have to.

The easiest way to turn front end developers into full stack developers was to let them use the same language for everything, and it was easier to bring JavaScript to the server than to bring any other language to the web.

These days with WASM and JavaScript as compilation targets it might have been avoided, but it's already too late.

Anyway I rambled a bit but the point is "joy" has nothing to do with it.

Re:Microsoft rewrote Q# compiler in Rust by sudodude on Wednesday June 21, 2023 @10:40PM (#36427404)
I think that's just entrenchment at work. When the majority of your developers only know x languages, and one of them is always js, you tend to work by the lowest comments denominator and the tools that everyone can work with are the ones that stick.
Re:Microsoft rewrote Q# compiler in Rust by Turskarama on Wednesday June 21, 2023 @11:45PM (#36427795)
That's true, and I also think it's a mistake.

Any decent developer can become competent with a new language in a matter of weeks, whereas making a large application with the wrong choice of language and tooling can become a maintenance nightmare. Given how difficult it is to verify JavaScript programs as "correct", its use on the server has always riled me up.

Re:Microsoft rewrote Q# compiler in Rust by insanitybit on Thursday June 22, 2023 @09:17AM (#36431702)
> But that would not explain NodeJS, JavaScript for embedded microcontrollers, and so many more.

I'm only going to address NodeJS because I think that niche projects that target niche workloads are just unrelated.

I believe it does explain NodeJS. The idea is simple - your frontend engineers can own your edge services/ APIs. They're already heavily invested in JS and, at least at one point, there was a theory that unifying languages across frontend + edge made sense for other reasons.

Some people really just learn one language.

Re:Microsoft rewrote Q# compiler in Rust by jacobyoder on Thursday June 22, 2023 @10:21AM (#36432596)
> Some people really just learn one language.

I think that's a gross oversimplification. My colleagues know JavaScript, TypeScript and ECMAScript, as well as YAML, HTML and CSS.

Re:Microsoft rewrote Q# compiler in Rust by insanitybit on Thursday June 22, 2023 @12:28PM (#36434635)
I'm not trying to be mean but are you being sarcastic? I... can't tell...
Re:Microsoft rewrote Q# compiler in Rust by jacobyoder on Monday June 26, 2023 @08:52AM (#36479083)
At this point, I can't really tell either.
Re:Microsoft rewrote Q# compiler in Rust by comboy on Wednesday June 21, 2023 @05:32PM (#36424921)
> I am convinced that the way to get a software developer to do anything is to just play on that need for joy.

Works outside software development too.

Re:Microsoft rewrote Q# compiler in Rust by antonvs on Wednesday June 21, 2023 @07:54PM (#36426416)
I think the Javascript example is more about what people are already familiar with. Same goes for languages like Python. Other languages can't "spark joy" if you're not familiar or comfortable with them.
Re:Microsoft rewrote Q# compiler in Rust by rmwaite on Thursday June 22, 2023 @10:21PM (#36442049)
I agree with this. I use Fantasque Sans Mono for the same reason - k with a loop makes me feel warm and fuzzy for some reason.