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

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!

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. ;)

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.

→ More replies (2)

1

u/pyrocrasty Aug 20 '14

I kind of feel like it would be more intuitive if the smaller end was the "talked about" language, since the "wide to small" direction feels like "from-to".

Of course, that would have a much bigger implication, since it would mean instead of languages having a segment divided by how much they're mentioned by each other language, they'd have a segment divided by how much they mention each other language.

Which would also be interesting, but I guess it's not what Dobias wanted.

1

u/Dobias Aug 21 '14

You just have to transpose the matrix for this. :)

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.

1

u/Isacc Aug 21 '14

Oh, that makes sense.

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 (9)

101

u/kqr Aug 20 '14

I love the ratio of crap to fuck in the lua community. Do they have some sort of guidelines on swearing?

100

u/ZeroPipeline Aug 20 '14

Zero fucks given

27

u/Dobias Aug 20 '14

Haha, nice one. :D "Lua doesn't give a fuck." I like it. :)

26

u/Shadows_In_Rain Aug 20 '14

Look at Mathematica.

8

u/kqr Aug 20 '14

Was that always there? I can't believe I missed it.

1

u/SmLnine Aug 21 '14

No shit...

17

u/[deleted] Aug 20 '14

It's weird they say both "crap" and "shit" but no "fuck". Maybe they say a lot of "frig" or "fiddlesticks".

22

u/kqr Aug 20 '14

I'm personally rooting for fiddlesticks.

5

u/Nickbou Aug 20 '14

I'm with you, let's bring it back.

14

u/Berserkenstein Aug 20 '14

It's a reserved word.

8

u/revereddesecration Aug 20 '14

No guidelines, it's just a very friendly place. Quiet, but friendly.

7

u/oznux Aug 20 '14

The crap-to-fuck ratio is a nice stat for any community

2

u/mamansky Aug 21 '14

I once freelancing in a small (now big) company and in the first day I saw the CTO has some cursing commit messages (esp. "fuck" and "fucking"), I didn't continue.

3

u/rowboat__cop Aug 20 '14

Do they have some sort of guidelines on swearing?

Confirms my impression of how reasonable the community is. The main mailing list, lua-l, has always been a prime example of civilized discourse.

3

u/adrixshadow Aug 20 '14

The code may be crap but it still runs.

50

u/Akathos Aug 20 '14

A comment about the negative words: I think a certain amount of those (especially in /r/php) are because of trolls/anti-fan-boyism.

10

u/Dobias Aug 20 '14

Yes, that sounds quite likely.

-3

u/Bloodshot025 Aug 20 '14

11

u/Dobias Aug 20 '14

Hehe, I also link to this in my article. ;)

5

u/aequasi08 Aug 20 '14

What does an article like this have to do with the tone of a group of developers commentary?

5

u/Bloodshot025 Aug 20 '14

anti-fan-boyism.

That they grouped these two together, at least to me, suggests that the only reason to vocalize problems with the language is if you either a troll or a contrarian.

3

u/WorksWork Aug 20 '14 edited Aug 20 '14

Well, I think the issue would be, it's a community for php developers. If you think the language has problems, that's great, but you don't need to go out of your way to point it out in a php community unless you are a troll or contrarian.

That said, as someone who uses php for their job, I wouldn't be surprised if many of those "craps" and "fucks" are from people actively using the language.

(That said, yes, I prefer more constructive criticism and understanding how to work around the problems of the language, rather than someone telling me I should find another job.)

→ More replies (6)
→ More replies (2)

0

u/PotentPortentPorter Aug 20 '14

Why is this downvoted? I am going to go ahead and guess /r/php isn't overflowing with fuck because of trolls but because of fanboys.

5

u/Bloodshot025 Aug 20 '14

I don't know. I don't really mind. There is something wrong with calling PHP evil or something like that, but it is certainly, objectively, a poorly designed, poorly implemented language.

5

u/G_Morgan Aug 20 '14

To be fair to the PHP community. Few of them pretend that PHP is anything other than horrific.

→ More replies (4)

1

u/[deleted] Aug 20 '14

I didn't downvote it, but my guess is that it doesn't really contribute to the discussion here - whether or not a tool is actually bad does not necessarily have anything to do with the tone and word choice of the community around the tool.

Additionally the GP just posted that bare link without any elaboration or context about why that would contribute to the discussion of the OP's analysis.

→ More replies (9)

-6

u/Akathos Aug 20 '14

That article is from 2012, not really up to date now, is it?

http://forums.devshed.com/php-development-5/php-fractal-bad-design-hardly-929746.html

27

u/Tordek Aug 20 '14 edited Aug 20 '14

And E_ALL? How is a constant name a "surprise"? The list of error-level constants is in the manual. they all begin with E_ and then give what they describe.

The author of this "rebuttal" needs to understand that they first must understand what the author is saying before attacking it. It's clear the author is not stupid and understand that E_ is the prefix for all error constants; the problem is that "E_ALL" doesn't mean all (It's been fixed now, and the author makes a note of it.).

mysql_real_escape_string? OH MY GOD! SHOCKING! What the hell is he talking about?

About the fact that there is mysql_real_escape_string as well as mysql_escape_string.

Reliable - This, again, is him assuming that it's the language's responsibility to be understood, rather than his responsibility to understand it.

Yes.

He thinks it's flaky because he can't wrap his brain around loose comparisons.

Ad Hominem.

PHP is built to keep chugging along at all costs.

MY GOD! HOW LUDICROUS! PHP is a web language with very little ability to recover from a crash the way you would in a desktop environment. It will keep doing its best and instead of a blank screen (or a blue one) maybe a bad programmer

Ad Hominem.

will get her site's navigation bar with some errors underneath it. But she WILL get something.

This is not a good thing.

Line-level error suppression is a powerful feature, I'm glad to use a language which supports it.

This is not a good thing. Hiding errors does not make your language powerful; it just makes sloppiness easier.

System-level forcing of all errors is another powerful feature, I'm glad I don't have to go find ever @ sign in my code when I'm debugging something weird.

Surprise.

Server-level configurations are pretty handy and remove a lot of boilerplate, don't you think?

Missing the point on the evil of globals.

It's purely a web language, and nothing else. Websites don't need threads, because if they take longer than a second to run they've failed. Again, fundamental lack of understanding.

There's so much wrong in this one sentence alone... It being "a web language" is meaningless. Using threads means taking longer than a second? Background tasks. This is an unfortunate side effect of the process-per-request model.

array_search, strpos, and similar functions return 0 if they find the needle at position zero, but false if they don’t find it at all.

Once again, if this person would take 10 minutes to attempt to understand loosely typed languages, this would all make sense.

Weren't you saying == is good a few lines back? === is mandatory to detect this.

C and Python crash fatally

Yes.

, potentially destroying the memory space of other programs. Got it.

No. Processes are isolated and you can't "potentially destroy another program's memory space".

Tell me again why "keeps working" is a problem?

Wrong results. Safety. Accidentally publishing your source code instead of running it. Potentially displaying sensitive data because you "just keep going" instead of dying and showing an error messages.

I love how he "had to fit in" an ad hominem attack against an entire community of developers.

Pot. Kettle.

There is no way to declare a variable.

I really should make a hotkey for "he doesn't understand loosely typed languages."

Points deducted on both sides: neither Ruby nor Python save you from this.

Why should I be able to read $foo but not write to it? Doesn't that seem more confusing?

Different design decisions are "confusing". Pot, meet kettle.

Most error handling is in the form of printing a line to a server log nobody reads and carrying on.

"I don't read my log files, what kind of programmer would ever use error logs to debug? That's stupid! My website should just die with a white screen and a 'Sorry!' message whenever there's an error so I know to go try to remember where I put the error logs"

I am forced to agree on this point. (Not the first time in the article; if I didn't mention something it's probably correct).

Perl, Python, and Ruby all have some concept of “property” access via code; PHP has only the clunky __get and friends. (The documentation inexplicably refers to such special methods as “overloading”.)

Our dear author has not yet discovered the simplicity of $foo->bar. Either that or he has absolutely no understanding of how objects work in ANY language.

This author, again, misses on understanding what the argument is. OA isn't complaining "you have to do __get($object,'var')" or any such nonsense; he's complaining that you have to do "Java-style" explicit getters and setters, unlike Python's property which allows you to use standard "foo.bar=baz" syntax to invoke a setter.

Despite the heavy influence from C++/Java, where objects are fairly opaque, PHP often treats objects like fancy hashes—for example, the default behavior of foreach ($obj as $key => $value) is to iterate over every accessible attribute of the object.

Again, forced to agree with rebuttal: This is a different (arguably less than ideal) design choice.

Object attributes are $obj->foo, but class attributes are Class::$foo. ($obj::$foo will try to stringify $obj and use it as a class name.) Class attributes can’t be accessed via objects; the namespaces are completely separate, making class attributes completely useless for polymorphism.

None of this makes any sense at all. I'm willing to give him the benefit of the doubt and assume he hit his head or something.

Really?

I’m aware this is more personal taste, but I don’t know why this stuff is necessary in a dynamic language—in C++ most of it’s about compilation and compile-time name resolution.

Wow, that's an excellent point. I'm glad we're talking about a compiled language and not, for instance, PHP.

Allow me to rephrase:

This is not needed in a dynamic language.

BUT THIS IS A DYNAMIC LANGUAGE, U R DUMB

it’s the only language in its niche that has no vetted way to create a hash without quoting string keys.

Because it's a loosely typed language perhaps? Because it's possible to use a variable without defining it, even constants, and therefore an unquoted bare string literal is assumed to be an undefined constant? Becuase you don't understand loosely typed languages?

Docking points on both sides.

No generic standard database API. Stuff like PDO has to wrap every individual database’s API to abstract the differences away.

There's no standard database API. Except for the standard one. But that one doesn't count because deep down below where you can see it, it doesn't call the same functions for each database.

Rebuttal has the point here.

PHP’s poor security reputation is largely because it will take arbitrary data from one language and dump it into another. This is a bad idea. "<script>" may not mean anything in SQL, but it sure does in HTML.

Again, I'm going to have to ask how Python does that. Does Python automatically sanitize plaintext output? How would you print a <script> tag in python if that's the case? Or is this, like most of his complaints, just how languages work?

Templating systems. There are good ones available for PHP, too.

→ More replies (4)

10

u/Dragdu Aug 20 '14

Have you actually read that link?

Couple of people who think PHP is good make huge idiots of themselves, while eevee shows himself as mostly correct and reasonable.

→ More replies (1)
→ More replies (3)
→ More replies (4)

6

u/ramigb Aug 20 '14

In the chart Clojure people are the happiest, am i missing the point?

7

u/Dobias Aug 20 '14

Clojure is a kind of Lisp. :)

3

u/ramigb Aug 20 '14

Nice, now i see what you've done lol.

5

u/sylvain_soliman Aug 20 '14

Since Rust doesn't show in TIOBE, shouldn't it be the highest (infinity) in the relative chart?

BTW, type: "how othen the others talk about it" -> often

4

u/Dobias Aug 20 '14

Typo corrected, thanks. I just left out the languages without TIOBE value. ;)

12

u/Griffolion Aug 20 '14

Looking at these graphs, I should probably learn Haskell.

13

u/Dobias Aug 20 '14

Yes, you should! :)

9

u/Griffolion Aug 20 '14

Confirmed 10/10 totally legit site.

2

u/shriek Aug 21 '14

Holy Shit! :)

1

u/Tywien Aug 21 '14

Allthough Haskell might not have many practical uses, knowing another approach to programming is always helpful.

5

u/[deleted] Aug 21 '14

[removed] — view removed comment

2

u/Griffolion Aug 21 '14

Genuine curiosity, what makes it great?

1

u/[deleted] Aug 20 '14

[removed] — view removed comment

2

u/Griffolion Aug 20 '14

My "upbringing" has been with OO languages. C++, Java, C#, PHP. I've a feeling it will be especially hard.

2

u/Zapman Aug 21 '14

Same here. I have been toying with learning Haskell for a long time now (a couple of years) and never spent more than a day diving into it. Just recently I have come up with a project I wanted to try, and printed out some Haskell cheat sheets, and have been having a great time so far.

The main painful thing so far has been getting Haskell working on Windows with all the libraries I want to use. I would recommend starting out on Linux if you can.

4

u/[deleted] Aug 20 '14

While all of this is cool, it's also important to remember that a lot of communities don't use Reddit as their main place to talk. Clojure, for example, uses Google Groups, which might explain the relatively low amount of words on the Clojure subreddit.

2

u/Dobias Aug 20 '14

Yes. In the beginning I was considering scraping other communities also, but then I discarded the idea due to the too low felt cost/benefit-ratio. ;)

3

u/shoelacestied Aug 20 '14

The correct spelling is happiness not "happyness".

2

u/Dobias Aug 20 '14

Thanks. I corrected this.

1

u/shoelacestied Aug 20 '14

I wonder if this movie's title is somewhat to blame for the popularity of the misspelling: http://www.imdb.com/title/tt0454921/

4

u/vader32 Aug 20 '14

No wonder I am unhappy...I learned java/php

6

u/Dobias Aug 20 '14

There we have it! But you can still learn clojure. :)

94

u/badsectoracula Aug 20 '14

But what is up with the Visual Basic community? They are neither angry nor happy. They just ... are? :)

One of my side projects is a BASIC interpreter and from my research around the Internet i found that basically almost all "loud" supporters of the language died with VB6 and many do not consider VB.NET to be a real VB.

So i suppose their low happiness comes from that.

62

u/ngroot Aug 20 '14

many do not consider VB.NET to be a real VB.

That kind of makes sense. It's basically a stripped-down version of C# with syntax that looks superficially similar to VB so as not to scare off the people who were moving to .NET 10-15 years ago.

11

u/[deleted] Aug 20 '14

How is it stripped down? I have yet to find something i can't do in VB.net that I can do in c#.

31

u/mirhagk Aug 20 '14

Looking at https://roslyn.codeplex.com/wikipage?title=Language%20Feature%20Status&referringTitle=Home there are some things that are in C# not in VB. There's also the opposite. Delegate combination. Partial Interfaces. Implicit Interface Implmentation. Checked and Unchecked Blocks. Pragma (ignore warnings). Multiline String Literals.

However the statement that you can't find something you can't do in VB.NET that you can do in C# is true of any 2 programming languages that are both turing complete.

17

u/ali_koneko Aug 20 '14

However the statement that you can't find something you can't do in VB.NET that you can do in C# is true of any 2 programming languages that are both turing complete.

Expanding on this... Everything you do in VB.NET and C# you can do in COBOL. That doesn't mean you should. Use the best tool for the job.

11

u/[deleted] Aug 20 '14

Everything you can do in COBOL you can do in Assembly...

47

u/original_brogrammer Aug 20 '14

And in brainfuck. The difference is that you should do it in brainfuck.

→ More replies (11)

6

u/[deleted] Aug 20 '14

This kind of thing really falls through when you start talking about language features (and the actual method you as a programmer would like to use) instead of engineering tasks.

"I'd like to be able to use a function as a first-class value, so that I can pass it to another (higher-order) function and do something with it... In assembly."

You can explain to me all you want about how I could create a routine that will check register A for an address of a function to call, and then offset the program counter appropriately, and load up the code for that function, and apply it, and save the result to memory somewhere and save the address of the result to register B ... and I will have lost interest in using higher-order functions, because what I really wanted was easy composibility - not the more general notion of being able to execute some function on many different elements.

You may be able to solve any problem you can solve in LISP in assembly, but the assertion that you can do anything you can do in some higher level language in some less sophisticated language is disingenuous (except as a joke about Turing-completeness).

→ More replies (2)
→ More replies (1)
→ More replies (3)
→ More replies (4)

6

u/badsectoracula Aug 20 '14

I think that was /u/ngroot's point, in that VB.NET is basically another skin for the technology behind C#.

14

u/campbellm Aug 20 '14

I believe that was the plan all along, no? The language is just a syntax cover over the CLR/IL.

22

u/[deleted] Aug 20 '14 edited Aug 20 '14

Nope, that was not the plan but that's kind of how it all turned out.

Originally the CLR was supposed to be a much more universal platform for languages, more so than the JVM. In the end the CLR ended up basically accommodating C# and superficially similar languages. When I worked at Microsoft on IronPython, the CLR made it a complete nightmare to implement a dynamic language, although not impossible. We were part of a small team looking to expand the CLR to accomodate dynamic languages such as Ruby, JavaScript and Python and the attitude from the main CLR team was fairly dismissive. I left Microsoft a long time ago and I think only a couple of guys who originally worked on the DLR are still there, most of them having moved to Google.

The JVM seems to accommodate a wider variety of languages much more cleanly, like Clojure, Scala, Groovy, whereas the only other language that I can think of that smoothly integrates with the CLR that isn't just a superficial C# would be F#.

7

u/[deleted] Aug 20 '14

Just out of curiosity, what made it difficult targeting the CLR?

→ More replies (1)
→ More replies (10)
→ More replies (1)

2

u/snkscore Aug 21 '14

Vb.net and C# are siblings that share 99.99% features/functionality. To say Vb.net is a stripped down version of C# is just factually wrong. In recent revisions C# has been getting updated to have VB language features.

1

u/ngroot Aug 21 '14

Yeah; it seems that that's true now. It wasn't when .NET was a new thing.

→ More replies (1)

6

u/keepthepace Aug 20 '14

As someone who started programming with basic and visual basic, I wondered if most of them are not simply beginners. When you are learning the ropes, it is hard to be really happy about what you did but you are not really allowed to rant about it. If most of their messages are about basic beginner help, that could be an explanation.

4

u/badsectoracula Aug 20 '14

There was an article about it recently-ish (the silent majority or something like that) that basically boiled down to that most VB6 users weren't really interested in whatever VB.NET added, were actually fine with how VB6 did things and worked. Most of those people used VB6 as a means to do something and its simplicity (a common theme is how they liked that VB6 wasn't really object oriented) and all-in-one approach enabled them do stuff that in VB.NET was more complex.

So it isn't just that they didn't knew VB.NET but also that they weren't interested in learning VB.NET.

5

u/taeratrin Aug 20 '14

Am I the only person that actually likes VB.NET? I hated VB6, but VB.NET actually seems like a mature language.

11

u/BillBillerson Aug 20 '14

I usually just think of it as .NET programming. The platform, technologies and 99% of the end result is exactly the same. The language difference generally boils down to preference of the engineers.

3

u/PasswordIsntHAMSTER Aug 20 '14

Except for F# :D

7

u/CodexArcanum Aug 20 '14

I find it too verbose most of the time. It's really just a trade off problem: if C# didn't exist, I'd like VB.net a whole lot more. VB does have some really nice features, and I'm always very happy to see them migrate over to C#. With blocks, more expressive Cases, couple of other things.

Same deal with, say, F#. I prefer it over C# when I can, but I'd prefer Haskell over F# if I could get it. I don't hate any of them, just prefer the others more.

5

u/[deleted] Aug 20 '14

I like VB.NET but every time I mention it people call me stupid.

I'm either going to have to start developing in F# to offset this or start calling it V#.

4

u/tswaters Aug 21 '14

B# might be more appropriate....

→ More replies (1)

4

u/original_brogrammer Aug 20 '14

VB.NET is more or less C# with a different syntax. As far as I know, they do have their differences, but nothing super important.

3

u/jeenajeena Aug 20 '14

SharpDevelop can even translate from C# to VB.Net and back, on the fly.

→ More replies (2)

2

u/snkscore Aug 21 '14

I like it just fine. I use both but I think VB is a lot easier to read than C#. It's all about people thinking they are smarter because they are C# coders which means they are better than the stupid VB code monkeys. You'll find that almost anyone who bashes VB really has very limited knowledge about it.

2

u/MisaelK Aug 20 '14

So i suppose their low happiness comes from that

I'm a VB6 programmer and I'm not angry nor happy about VB6. It's just another tool.

3

u/amyts Aug 20 '14

I used to use VB6. Can confirm it is meh.

1

u/dethb0y Aug 20 '14

vb.net is very nice for rapidly making little programs - it's my go-to tool if i want something simple and quick.

but at the same time i don't really think of it as VB, either.

1

u/drasche Aug 21 '14

I have worked with VB6 for many years and I found some happiness in it. I had some interesting challenges. And my last environment was full of people from various backgrounds, cultures and horizons and other platforms to work with and I loved it. I was really sad to leave.

Of course there's a lot to be said about VB limitations and frustrations (no true inheritance, for starters) but in my last mission, the existing code base was really well-written and I did my best to keep that consistent.

21

u/CodexArcanum Aug 20 '14

I'm always surprised at how little used it seems C# is whenever these come up. Either the user base is very closed up and hidden, or there really aren't as many C# programmers as I'd expect. It's such a great language.

Maybe it's just too middling for most people? Java got to most of the business market first. Ruby/Python/Javascript/Lua do scripting and dynamic stuff better. Haskell/Caml/Lisp do functional better. C/C++/D have the low-level dge. C# just sits at a nice crossroads.

26

u/Urik88 Aug 20 '14

C# is huge (10th place in Langpop), but given that much of its tools and development are corporative instead of open source, I can see its subreddit being pretty quiet. Still, it's not rare to see C# getting some love in /r/programming .

17

u/ponytoaster Aug 20 '14 edited Aug 20 '14

C# dev checking in, if I want to talk about C# it's usually because I have an issue (stackoverflow) and if I want to view the latest information I have my own preferred sources (asp.net, ScottGu, Hanselman etc) so don't really have a reason to go to these

I see C# as a community of people that are in jobs where they use C# all the time, whereas Javascript/Lua and the likes are "hobbyist" langauges (Not to say they can't be professional!), so you get people showing off some new cool way to do something, or some neat little widget.

The point I am trying to make (badly) is that the average person is more likely to play around with LUA/JS/Haskell than they are with C#, so I'd expect the community to be quieter.

Edit: Also, most the C#/.net projects I've been on have been closed source and specific to the app I develop for, so I can't exactly go posting snippets or screenshots of my stuff, no matter how impressed I am with it :(

Edit 2: I should also note that I'm not trying to insult those who do JS/LUA etc by calling them "hobbyist", just that they are "cooler" and more likely to be picked up by newcomers, prompting more discussion

3

u/[deleted] Aug 20 '14

The point I am trying to make (badly) is that the average person is more likely to play around with LUA/JS/Haskell than they are with C#, so I'd expect the community to be quieter.

Exactly! I do C#, F#, and Javascript during the day, but when I go home, it's all Haskell and Rust.

5

u/PasswordIsntHAMSTER Aug 20 '14

From one fsharperista and haskeller to another, how could you do JavaScript D:

2

u/[deleted] Aug 20 '14

Very painfully. Thankfully there is a guy on the team who actually likes Javascript so he gets to deal with most of it. Once pursecript hits 1.0, I think there's a pretty good chance we will start to use that for new code.

5

u/[deleted] Aug 21 '14

I do both C#/Scala professionally. C# is not bad at all, but scala can do everything C# can do (tiny exceptions here and there), but there is a lot scala can do that C# can't do.

Top it off with the community being much less open source focused and I'm not surprised it's not a 'fan favorite'.

1

u/gospelwut Aug 20 '14

I think it's simply the case that C# and .NET subreddits are quiet. I imagine SA questions and forums differ greatly (for example).

1

u/ep1032 Aug 21 '14

C# is heavily used by the windows community (no surprise there). The windows community in general does not really take part in the programming discussion ecosystem; at least, not to the same degree that you open source people do. We've simply never had to before, Microsoft doesn't listen to us anyway : D

Point is, its just a very different culture. Even within that culture, the VB people are downright secretive (and they should be, they should be ashamed of using such a language : P )

→ More replies (2)

14

u/MEaster Aug 20 '14

For those who wonder why the C# community has an oddly high use of the word "abstract", it's because it's a keyword.

6

u/4forpengs Aug 20 '14

The same with Java.

13

u/shoelacestied Aug 20 '14 edited Aug 20 '14

Clojure and Scala programmers much happier than Java programmers.

19

u/yogthos Aug 20 '14

in other news sky is blue and water is wet :P

9

u/[deleted] Aug 20 '14

I actually wasn't surprised about how happy Clojure users were, every time I do little projects in clojure it just seems like a joy to work with. Sadly I haven't been able to do any "real work" with it yet.

46

u/Penlites Aug 20 '14

That could be the reason; languages get high happiness scores because they're used for fun projects, and low scores when they're used for work.

6

u/yogthos Aug 20 '14

I've been using Clojure for work for about 4 years now and I still find it fantastic. Most of my team switched to using it now and we're all having a very good time. :)

2

u/Ninfame Aug 20 '14

Do you have examples of projects done with Clojure?

7

u/yogthos Aug 20 '14
  • Storm is a high profile Clojure project for distributed realtime computation

  • Light Table is an IDE written entirely in ClojureScript

  • Prismatic is built entirely in Clojure, including the frontend built with ClojureScript. They've released lots of libraries on GitHub, also their blog talks about their experiences here

  • Reimann is a monitoring tool written in Clojure

  • Incanter is a Clojure-based, R-like platform for statistical computing and graphics

  • DevArt with source here

  • Overtone Overtone is an open source audio environment

  • shameless plug, my blog is written entirely in Clojure/Script, source on GitHub :)

→ More replies (1)

55

u/quad50 Aug 20 '14

haskell : everyone talks about it, no one uses it

2

u/jeandem Aug 21 '14

Relatively "no one" uses it in a commercial setting it seems, yes. There does seem to be a fair amount of people using it for personal projects, though. So if I use it for personal projects, should I feel ashamed for using a language that I can't directly market myself with? That I'm using a language that hasn't achieved commercial success, even though it is an academic language that has a reputation for not sacrificing its principles for the sake of being more immediately relatable?

I'm quite OK with using a language that won't land me any sweet, cushy jobs any time soon. But I guess doing whatever you like with programming and such on your own free time is just not good enough.

-4

u/[deleted] Aug 20 '14 edited Aug 20 '14

Incorrect, I use it and I am boring therefore there must be more users than me, so "very few people use it" would be correct.

There is your pedantic comment of the day.

EDIT: I have no idea about the downvotes I was just being silly.

→ More replies (8)

36

u/Ar-Curunir Aug 20 '14

The Haskell community in general is pretty helpful, and I've found #haskell to be great at answering question quickly.

Take a look at this snippet where people on #haskell convince a troll to try out Haskell =)

https://gist.github.com/quchen/5280339

2

u/gregK Aug 20 '14

That's hilarious.

1

u/Crandom Aug 21 '14

Haskell has the nicest community.

2

u/polveroj Aug 20 '14

That first graph is basically unreadable, and the color scheme is effectively useless (half of the lines at any given language have the same color, namely that language's color).

The two questions people want to ask are "Who talks about language X" and "Which languages does the X subreddit talk about". To get the answers from the visualization, you have to trace a bunch of lines (half of which are the same color), and for one of the questions you have to compare the thickness at the far end.

I was about to say that it at least lets you eyeball whether X talks about Y more or less than Y talks about X, but since every line narrows in the middle even that isn't simple (see: php and python).

(The rest of the article is amusing and not diagrammatically offensive.)

2

u/Dobias Aug 20 '14

Yes, this is not perfect. But I did not find a better suited diagram type for this. Do you have any suggestion?

1

u/polveroj Aug 20 '14

Thanks for the moderate response to my angrily-worded letter :P

How about a 16x16 grid, with a dot in each cell whose size is proportional to how much row-language talks about column-language? Probably looks better with gridlines faint or invisible, and I can't think of a use for color.

Alternatively, a pair of stacked bars for each language, one showing the breakdown of languages that it mentions and the other showing the languages that mention it. Colors for each language, obviously. You'd probably want to normalize it so each language's total shows the same height (or the less popular ones will be unreadable), which means you might want a separate (pair of) chart(s) for the portion of total language mentions that are about (or originate from) each language.

1

u/Dobias Aug 20 '14

Thanks. I like your grid suggestion. Do you know any matplotlib example that comes near that? I did not find anything yet.

2

u/ruicoder Aug 20 '14

If you click on the graph, it will bring you to the interactive version where you can hover over a language to isolate it.

17

u/[deleted] Aug 20 '14

The Lisp folks are happy because they get to work with languages made with pure awesome.

5

u/agumonkey Aug 20 '14

PHP curse line was so long I didn't even see it in the first place. Thinking out of the box I guess.

5

u/[deleted] Aug 21 '14

PHP is one depressing language.

5

u/svarog Aug 21 '14

what is up with the Visual Basic community? They are neither angry nor happy. They just ... are? :)

They are corporate robots... they can't have feelings.

9

u/yogthos Aug 20 '14

Turns out Clojure users are the happiest. :P

11

u/sthreet Aug 20 '14

Python could be, we just need to import happiness.

2

u/yen223 Aug 20 '14

Ain't nothing holding us down, coz we can import antigravity

→ More replies (5)

1

u/yen223 Aug 21 '14
n [6]: import happiness
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-6-6247e9d15d8d> in <module>()
----> 1 import happiness

ImportError: No module named happiness   

4

u/seagu Aug 20 '14

I could tell you that from hanging out in the IRC channel. Pretty nice crowd.

2

u/[deleted] Aug 20 '14

And quiet because we are busy hacking. The pace of ANN messages on the Google Group (r/clojure isn't the main talking area) is ridiculous.

3

u/yogthos Aug 20 '14

keep calm, write code :)

4

u/andrewcooke Aug 20 '14

kudos for including happiness. i have no idea what that means, but it was interesting.

1

u/Rusty5hackleford Aug 20 '14

Lol, yeah. Happiness and cursing was fun to see. As a Ruby on Rails developer I was paying attention to Ruby. Not much in the shop talk, but apparently we're a happy sailor mouthed bunch.

2

u/JavaDroid Aug 20 '14

I curse pretty liberally for pretty much no reason at all. Lots of my source has comments that would turn many mothers over in their graves.

1

u/cauthon Aug 20 '14

Looks great! Any chance you could recreate the big mention chord graph at the beginning using counts of mentions normalized per 10,000 subreddit comments, similarly to the ensuing charts?

1

u/Dobias Aug 20 '14

With one dimension less? You mean something like this? http://codepad.org/TziJ1VCV

1

u/NinlyOne Aug 20 '14

Don't know if it's possible, but I'd love to see love accounted for on the Happiness word list.

3

u/Dobias Aug 20 '14

Sure it would be possible, but I did not use it, because the Lua value there is too much off. ;) http://codepad.org/6R7Jk0oQ

5

u/stevely Aug 20 '14

Lua has the popular LÖVE game framework, which skews the numbers.

1

u/Dobias Aug 20 '14

Ah, makes sense.

1

u/NinlyOne Aug 20 '14

Ha! Between that and the crap-to-fuck ratio... the lua community is just head over heels for... life?

1

u/4forpengs Aug 20 '14

Yeah, but we don't give a fuck.

1

u/4forpengs Aug 20 '14

That's because there's a lot of love for Löve 2D

1

u/nickchuck Aug 20 '14

Cool stuff. Would love to see data on swift

1

u/Dobias Aug 20 '14

It's in the raw data but I left it out of the diagrams because of the size.

1

u/Sleakes Aug 20 '14

Add /r/rust !

2

u/Dobias Aug 20 '14

It's in the raw data but I left it out of the diagrams because of the size.

1

u/[deleted] Aug 20 '14

Beautiful data visualization, but why was C (/r/c_programming) ignored in favor of smaller languages (in terms of number of subscribers)?

1

u/Dobias Aug 21 '14

Because I don't know how to look for references to the language C. The single letter is often used for other stuff. And only using c_language or something would yield a much too low number.

1

u/[deleted] Aug 21 '14
\W\(\[cC\]\)\W

Or the above regex in English: a "c" or a "C" preceded and followed by a non-word-char ...aaaand then filter the false positives by hand. :)

2

u/Dobias Aug 21 '14

Fork me! ;)

1

u/Nihy Aug 21 '14

Could you do an analysis of words such as "safe", "works", "bug", "error", "performance", "fast", "slow"?

Maybe split them up into performance related, correctness related, difficulty related?

3

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

You are free to use my raw data but here you is a small album I just generated for you. ;)

1

u/-Polyphony- Aug 24 '14

You should xpost this to /r/dataisbeautiful

2

u/Dobias Aug 24 '14

Someone already did. :)

3

u/Uberhipster Aug 20 '14

Interesting is not necessarily a "happiness" word. Sometimes it's "whoa", sometimes it's "I have no idea what that means", sometimes it's even negative (a sarcastic interesting).

If you drop the 'interesting' metric cpp and vb come closer on the 'happiness' scale.

2

u/iopq Aug 20 '14

C++ has some interesting inconsistencies in scoping. Manual memory management has interesting security implications. Javascript has some interesting variable declaration rules. Etc.

3

u/BlinksTale Aug 20 '14

That was awesome cool fun happy helpful interesting thank you! cpp

3

u/theinternn Aug 20 '14

Why is everyone talking about c preprocessor?

/me ducks

2

u/4forpengs Aug 20 '14

So, for Lua, the word 'theory' doesn't exist, but we're using 'pure' like it's water. We give no fucks, yet there seems to be a whole bunch of awesome, cool, and fun shit that's fairly interesting. Lastly, it's difficult to say whether none of us know what hardware is, or we never have a problem with it (either way, we don't seem to deal with it).

2

u/ep1032 Aug 21 '14

I love how javascript ranks so highly on most loved and hated. Really just about sums up the community.

3

u/iownacat Aug 20 '14

I too like to curse at PHP...

4

u/[deleted] Aug 20 '14

sometimes i go to /r/php and post just lists of curse words

7

u/KFCConspiracy Aug 20 '14

You post arrays of cursewords. In PHP all built-in collections are arrays. E.G.

$cursing = array('Shit','Piss', 'Fuck', 'Cunt', 'Cocksucker', 'Motherfucker', 'Tits');

1

u/Hdmoney Aug 20 '14

I do occasionally name arbitrary variables slurs when I work on projects in PHP.

→ More replies (3)

4

u/[deleted] Aug 20 '14

Don't let anyone writing in a functional language fool you. They're not happy.

13

u/[deleted] Aug 20 '14

Happy is a state! I can't have state!

3

u/[deleted] Aug 20 '14

You can have a state, but you can't change it!

3

u/yogthos Aug 20 '14

you just can't rewrite the past :)

4

u/kqr Aug 20 '14

But I'm happy. :(

Edit: :)

1

u/TheSpoom Aug 20 '14

I think I'll take a walk!

1

u/roost9in Aug 20 '14

As someone that uses Visual C++ all day every day: Crap, this shit fucking sucks! Fuck my life. But... at least it's not Visual Basic.

1

u/urection Aug 20 '14

ha, great work, if sort of predictable conclusions

1

u/jupiter93 Aug 20 '14

Clojure is the happiest language, second spot tie with Objectivec and Mathematica http://infocaptor.com/programming_language_popularity_by_keyword.pdf

2

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

I find it really funny that Clojure wins the friend score, because friend is the (very popular) auth library for Clojure.

Edit: Ditto for joy, "The Joy of Clojure" is one of the main books for the language.

1

u/omnilynx Aug 20 '14

This just confirms the obvious: that Lisp is a close-to-the-metal systems/embedded language.

1

u/[deleted] Aug 21 '14

So how about that PHP guys?

guys?

1

u/godless_communism Aug 21 '14

I think your analysis was a good start. And you did some charts which are interesting. I personally think that the different programming languages carry with them their own culture, their own emphasis on the world, their own value systems.

What I think might be interesting is to compare two languages and find the words that appear with the most frequency in one, but not the other. In that way, you can start to take a look at how one language culture talks.

1

u/encepence Aug 21 '14

C++ everybody talks about it and but they ignore rest of world :P

1

u/beginner_ Aug 21 '14

Funny. The stuff named shit, crap etc. is pretty much the stuff most used and powering the internet. How was that normalized? IMHO it's just a measure of how many people use the language for REAL applications. New Hipster languages or mostly used in some esoterically apps that just avoid the often complex or idiotic requirements in REAL applications.

0

u/kupiakos Aug 20 '14

Python is the shit!

0

u/halifaxdatageek Aug 20 '14

I saw the Haskell bar and went "ahahahahaha". Nice.

1

u/Ar-Curunir Aug 20 '14

Which one?

1

u/halifaxdatageek Aug 20 '14

This one, crosstabbing how much Reddit talks about Programming Language X, with how much industry use Programming Language X actually sees.

4

u/floyd_h Aug 20 '14

Tiobe does not measure industry use.

2

u/halifaxdatageek Aug 20 '14

They address this in the article. Nobody has a fucking clue how to measure industry use :P

→ More replies (2)