News for hackers. Stuff that matters.
Re:Data on Swearing in Programming Languages by 5hoom on Sunday September 18, 2011 @08:19PM (#3011690)
I'm sure this same story came up a while ago, but whatever. Here's my take on the type of swearing in commits as per the story (XXXX represents swearword of your choice).

C++: "Finally fixed it. My XXXX head hurts"

Javascript/Ruby: "Finished adding 15 new features. I am XXXX awesome"

C: "No time to swear, busy hacking. Oh XXXX whoops"

Java/C#: "Wouldn't swear, unprofessional & boss is watching"

Python: "All happy, & swears are naughty"

PHP: "Whats a commit?"

(ps. Just for fun, no flamebait intended!)

Re:Data on Swearing in Programming Languages by wisty on Sunday September 18, 2011 @08:59PM (#3011779)
I'm willing to bet a lot of the Javascript obscenity is "F*ck browser X", or words to that effect.
Re:Data on Swearing in Programming Languages by snprbob86 on Sunday September 18, 2011 @10:01PM (#3011910)
I know that the most popular tag in our issue tracker is #fuckie.

It's particularly fun to pronounce allowed as if it rhymed with "ducky".

Re:Data on Swearing in Programming Languages by damncabbage on Monday September 19, 2011 @12:02AM (#3012180)
Haskell and Lisp programmers are ascended beings, and are beyond the mortal desire to cuss in commit logs.
Re:Data on Swearing in Programming Languages by jmillikin on Monday September 19, 2011 @12:54AM (#3012325)
I've sworn my fair share when trying to write Haskell bindings to libraries that assume all languages have global variables.

CPython's module initialization functions are particularly obnoxious about this.

Re:Data on Swearing in Programming Languages by wickedchicken on Sunday September 18, 2011 @09:54PM (#3011890)
I'm going to assume that at least 25% of swearing in Ruby is attributable to William Morgan: http://sup.rubyforge.org/svn/trunk/lib/sup/imap.rb
Re:Data on Swearing in Programming Languages by Vivtek on Sunday September 18, 2011 @07:55PM (#3011638)
Obligatory: and then there's Perl, which is swearing.
Re:Data on Swearing in Programming Languages by ObjectiveSub on Sunday September 18, 2011 @08:05PM (#3011661)
I realize this post is a little tongue-in-cheek, however, you cannot use it to draw any meaningful statistical conclusions. This data makes no sense until you factor in the relative popularity of these languages on Github. We don't know if PHP has little swearing because if it is a great language, or if PHP is rare on Github. Similarly, the reason Javascript and Ruby score so highly is most probably due to the fact that they are extremely popular languages on Github.
Re:Data on Swearing in Programming Languages by effn on Sunday September 18, 2011 @08:12PM (#3011675)
"To make sure that the popularity of one language over another didn’t skew the results, Vos grabbed an equal number of commit messages per language."
Re:Data on Swearing in Programming Languages by ObjectiveSub on Sunday September 18, 2011 @08:40PM (#3011744)
I don't think it really matters. It may be that PHP developers that swear a lot don't use Github, or that Ruby developers that don't swear use Bitbucket, etc..
Re:Data on Swearing in Programming Languages by kabdib on Sunday September 18, 2011 @10:12PM (#3011942)

    #define DEFINE_GUID_RIGHT_FUCKING_NOW_DAMMIT(x) // ... stuff
I wrote that at 2AM once when I was at a start-up. I'm not proud. (Well, okay, I am).

A couple years later (after the start-up had imploded) I was asked to consult to fix issues that cropped up in the code at a customer site -- they'd bought an SDK and were having problems. During a walk-through of my fixes I found myself explaining that line of code to a suit.

The suit nodded. "GUIDs. Yeah, getting those right is tricky."

[That consulting gig was sweet; short, but I was able to charge $300 an hour. I should have charged more, they basically didn't care.]

Re:Data on Swearing in Programming Languages by jurre on Sunday September 18, 2011 @07:52PM (#3011627)
How can there be so little swearing with php? That's all I'm doing when forced writing that language. Love this type of stuff though!
Re:Data on Swearing in Programming Languages by hannibalhorn on Sunday September 18, 2011 @08:05PM (#3011660)
I'm not sure there's as much of a culture of using version control among PHP devs (they generally just upload the new version via FTP) or I'm sure it'd be much higher..
Re:Data on Swearing in Programming Languages by colanderman on Sunday September 18, 2011 @10:27PM (#3011973)
The results are normalized to # number of commits.
Re:Data on Swearing in Programming Languages by orblivion on Sunday September 18, 2011 @09:39PM (#3011851)
No kidding. Usually it's "...what the fuck?" when reading the documentation.
Re:Data on Swearing in Programming Languages by vbtemp on Sunday September 18, 2011 @08:46PM (#3011753)
Almost all of my work is either in C or python. When I do my embedded system development in C, I generally spend my day swearing at myself and cursing the world. When I do other components in python generally thing "wow. that was easy and fast. And it's so expressive. Wow! I'm in a great mood!". It makes perfect sense to me.
Re:Data on Swearing in Programming Languages by crikli on Sunday September 18, 2011 @09:57PM (#3011896)
I'm surprised at the Javascript figure. I leave a few swears in server-side script but the only people that will see that are other programmers; Javascript, anyone can read that.

That said, I've found a couple of rants in my old JS from the IE6 days that, well, if I clean them up they're not really sentences.

Re:Data on Swearing in Programming Languages by ahlatimer on Sunday September 18, 2011 @10:10PM (#3011939)
Looks like he scanned commit messages, not comments, so the only people who could read them are people browsing Github or have access to the repo some other way.
Re:Data on Swearing in Programming Languages by ggchappell on Monday September 19, 2011 @12:53AM (#3012322)
I can certainly understand the high level in C++. But Ruby vs. Python is odd. There are so many similarities in the Ruby & Python communities. The main difference seems to be that Ruby has One Framework to Rule Them All, while Python has ... various things. Maybe that has something to do with it?
Re:Data on Swearing in Programming Languages by olliesaunders on Sunday September 18, 2011 @08:45PM (#3011750)
There’s something really fishy about this. Or, if there isn’t, I really want an explanation.
Re:Data on Swearing in Programming Languages by antimora on Sunday September 18, 2011 @11:43PM (#3012137)
I find using http://www.google.com/codesearch is more accurate, since it covers a lot more code.
Re:Data on Swearing in Programming Languages by techdmn on Sunday September 18, 2011 @09:18PM (#3011807)
I don't swear in comments or commit messages, but I do often catch myself quietly muttering a string of obscenities while coding. At least I hope it's quiet.
Re:Data on Swearing in Programming Languages by aba_sababa on Sunday September 18, 2011 @08:46PM (#3011754)
Ha. I just made a hack about this at PennApps - http://www.commitlogsfromlastnight.com
Re:Data on Swearing in Programming Languages by damncabbage on Monday September 19, 2011 @12:00AM (#3012177)
Half of these commit messages may just be sourced from http://whatthecommit.com/
Re:Data on Swearing in Programming Languages by mmaunder on Monday September 19, 2011 @12:04AM (#3012185)
I'd say PHP is lowest because it has the most non-english devs. Might be interesting to check cross-languages.
Re:Data on Swearing in Programming Languages by Shenglong on Sunday September 18, 2011 @10:28PM (#3011976)
I'm surprised C# is so low. Maybe a broken-mice/keyboards chart would be more descriptive.
Re:Data on Swearing in Programming Languages by athom on Monday September 19, 2011 @12:38AM (#3012271)
From an old bumper sticker:

C code.

C code run.

Run, code, run.

Run, dammit, run!

Re:Data on Swearing in Programming Languages by jalanco on Monday September 19, 2011 @08:55AM (#3013321)
Maybe it is the demographics of the programmers who are using the languages.
Re:Data on Swearing in Programming Languages by buff-a on Sunday September 18, 2011 @10:16PM (#3011957)
Well my C# libraries on github have got some fucking catching up to do.
Re:Data on Swearing in Programming Languages by bocanaut on Sunday September 18, 2011 @08:20PM (#3011694)
funny thing, would also be interesting to connect the percentage of words used related to one language to see which one is more #wtf or less #shit