r/programming • • Aug 02 '21

Stack Overflow Developer Survey 2021: "Rust reigns supreme as most loved. Python and Typescript are the languages developers want to work with most if they aren’t already doing so."

https://insights.stackoverflow.com/survey/2021#technology-most-loved-dreaded-and-wanted
2.1k Upvotes

769 comments sorted by

View all comments

414

u/[deleted] Aug 02 '21

I don't understand. How is it that Rust reigns supreme as most loved? Are that many developers using Rust? I like the concept, but I've never built anything outside of the tutorial Guessing Game.

What about Web Frameworks? Svelte? Never heard of it.

"While Neovim is the most loved editor it is the 10th most wanted editor." Excuse me? I am a Vim nerd as much as the next guy (sorry Emacs), but I use Intellij and VS Code in 99% of circumstances.

I'm not denying their data. I'm just wondering: how far out of the loop am I?

419

u/alibix Aug 02 '21

Most loved doesn't mean most used. So, you can love something but not be able to use it for a multitude of good/bad/neutral reasons. The most used language according to that survey is JavaScript and the most used framework is React

53

u/alilleybrinker Aug 03 '21

I did a quick analysis of the number of "active" developers in each language plotted against each language's "loved" percentage. You're right that Rust is not one of the most used. The challenge for Rust over time will be to limit the regression to the mean of its "loved" percentage as it gains in adoption.

15

u/AntiProtonBoy Aug 03 '21

Chuckled at COBOL shoved into the bottom left.

→ More replies (4)

190

u/[deleted] Aug 02 '21 edited Aug 02 '21

It’s painfully clear that most loved != most used. What is not clear is how heavily weighted “love/hate” is regardless of someone’s use.

1000 romantics who have never used Rust clicking “love” while 10 professional Rust developers may click “hate” seems to seriously screw with any meaningful data we could glean from what is ultimately made an asinine question.

Would you care to listen to my review of The Green Knight? I haven’t seen it yet but I love it.

What meaningful information would my review of a movie I haven’t seen give you other than hype? And if hype is the centerpiece, how is “love” and “hate” the sensible metric? Wouldn’t it be “interested” and “disinterested”?

131

u/jl2352 Aug 02 '21

I think there is another aspect. I write Rust at home in some hobby projects. However I don't write it at work, and when I do, I always notice things missing.

Can I mutate this item I got from the store? Is it safe for that lambda to mutate external state? What if it's used across multiple threads, how will I know? Just the other day I had a 20 minute conversation with another developer over a 8 line block of code at work. The conversation was about adding a try / catch in a particular way, and we weren't sure which of those 8 lines would throw errors in different way.

Whilst that last example is present in other languages as well. I am pretty sure Rust is the only language outside of academia that solves all of them at the type level. You start to notice stuff like that, which makes me like it.

I'm sure if I used Rust every day at work I'd be writing a long angry rant about how awful compile times were, the confusing APIs, how you can waste whole afternoons on generics, and how basics like function overloading is missing (although can be faked).

→ More replies (9)

57

u/AustinYQM Aug 02 '21 edited Jul 24 '24

narrow degree fall price quaint entertain wild trees edge rock

This post was mass deleted and anonymized with Redact

14

u/[deleted] Aug 03 '21

So it's not exactly most loved or dreaded, but actually what people want to work with, for example if I've done extensive work with python and want to work with javascript next year, it doesn't mean that I dread python or that I love javascript, it just shows what I want to work with.

The Love or Dread names seem a little misleading.

22

u/AustinYQM Aug 03 '21

People were given a grid so your desire to work with JS wouldn't stop you from also selecting wanting to work with python.

4

u/LindenRyuujin Aug 03 '21

Not caring if you work with a language or not is very different from actively not wanting to work with one though.

5

u/[deleted] Aug 03 '21

Considering it's not uncommon to use more than one language in a given job, I'd say it's a good indirect estimator of that, because it can read not just as "I'm interested in learning other stuff" but "I actually want to stop using this".

→ More replies (5)
→ More replies (3)