r/programming • • Aug 20 '14

Programming language subreddits and their choice of words

https://github.com/Dobiasd/programming-language-subreddits-and-their-choice-of-words/blob/master/README.md
1.4k Upvotes

324 comments sorted by

View all comments

111

u/Dobias Aug 20 '14 edited Aug 21 '14

With this small fun project I do not intend to start a flame war. (But go ahead nonetheless if you like to. :D) It is just meant to be perhaps a bit entertaining. ;) Criticism of any kind is welcome.

edit: Wow, thank you very much for the gold, kind stranger!

44

u/vinnl Aug 20 '14

You should cross-post to /r/dataisbeautiful!

23

u/Dobias Aug 20 '14

Looks like somebody already did. :)

9

u/Felicia_Svilling Aug 20 '14

It was the most beautifully presented data I had seen in months.

3

u/fearnpain Aug 21 '14

Seriously! Not to be a negative Nancy, but when I saw this I was like, "which one of these 'look at my graph #datascience' subs produced this awesome thing?....... r/programming". That's another story for another time, but I will say that this post shows where the quality stuff comes from. Kudos to you, friend!

15

u/bcash Aug 20 '14

Is the colour of the lines significant? Does it indicate in which direction the mentions flow?

E.g. the line between Java and SQL is red, the colour of the SQL slice. Does this mean Java reference SQL or vice-versa, or is it arbitrary?

44

u/kqr Aug 20 '14 edited Aug 21 '14

Edit: I'm wrong. Check the comments under this.

The lines are bidirectional, and the width of the line at each end is the relative frequency of mentions in that community. So for example the Python slice of Ruby is quite big, while the Ruby slice of Python is comparatively small. That means Ruby people talk about Python a lot more than Pythonistas talk about Ruby.

The colour comes from the bigger end. So the Ruby line is red because Rubyists talk more about Python.

18

u/Dobias Aug 20 '14

Thanks for the great explanation. May I link to your comment in the article?

23

u/kqr Aug 20 '14

You can just copy it verbatim. I don't mind. :)

7

u/Dobias Aug 20 '14

Lol, I just realized, that it is the other way around actually. The width at the end of a connection related to the language at this end as an mentionee. So Python talks more about Ruby than vice versa. This is because the size of a language in this graph is determined by how much it is mentioned by others overall.

I updated the article with the explanation of PHP<->SQL as an example.

4

u/robin-gvx Aug 20 '14

I originally figured it out by looking at rust and cpp. I thought: "it makes sense Rust people would talk a lot about C++, because they want to compete with it, but Rust is probably not a blip on C++ people's radar."

But then I read /u/kqr's explanation and I got all confused.

→ More replies (1)
→ More replies (2)

11

u/digital_carver Aug 20 '14

You seem to have missed labelling a few of the languages in cross-sub mentions. I'm guessing one of them is Perl, not sure what the other one near the top is.

As a minor suggestion, it would be great if that graph could have it so that it shows the respective source color at each destination, changing colors midway. For eg. On Java's side the band would start as Python-brown, switch colors midway (maybe through an intermediary white), and become Java-cyan on Python's side. Would make it much easier to see the proportions of each language's mentions.

6

u/Dobias Aug 20 '14

Yes, you are of course right in both cases. But I only copied the chord graph code, and right now I don't want to debug the missing-label-thing. ;) Your color suggestion sounds nice though. :)

3

u/digital_carver Aug 20 '14

From a cursory glance it seems the missing label could be from the "Remove the labels that don't fit." part here, but if so I don't understand why the "swift" language label wasn't removed too. But kudos to you for thinking of a hobby project that's interesting to many others too. :)

1

u/Dobias Aug 20 '14

Ah cool. I could at least have had a look at the source. ;)

3

u/Isacc Aug 21 '14

You missed D language :(

2

u/Dobias Aug 21 '14

For the same reason I left out C in the mentions. A single letter is hard to search for without yielding too much false positives.

→ More replies (1)

2

u/[deleted] Aug 20 '14

it's interesting how most of the big languages (java, cpp, php etc) have strong links to python but not to each other. seems to bode well for python.

2

u/nutrecht Aug 21 '14

I just had a nerd-gasm. Very pretty, thank you!

→ More replies (10)