News for hackers. Stuff that matters.
Re:Amount of profanity in git commit messages per programmin... by snprbob86 on Tuesday February 22, 2011 @02:50PM (#2251220)
Pie chart? I have no idea how to interpret this...

http://www.flickr.com/photos/amit-agarwal/3196386402/sizes/l...

Re:Amount of profanity in git commit messages per programmin... by DanielStraight on Tuesday February 22, 2011 @03:18PM (#2251344)
Pie charts have a lot of drawbacks, sure, but it's ridiculous that we're at the point now where the first (and highest rated) response to a pie chart is always a negative comment about pie charts, regardless how good or bad the pie chart is.

This one in particular is very clear:

C++, Ruby and Javascript have the most profanity. They're relatively equal to each other and collectively account for more than 50% of the swearing in commit messages.

C is next, with significantly less swearing.

C# and Java are roughly tied a bit below C.

Python and PHP have, comparatively, almost no swearing.

Was that really so hard? When the data is already subjective (what is and isn't a swear word) and intended almost solely for humor, do we really need more precision than a pie chart offers?

It is at best hyperbolic and at worst dishonest to say you "have no idea" how to interpret this. You have an idea. You just don't have precision.

Re:Amount of profanity in git commit messages per programmin... by rbanffy on Tuesday February 22, 2011 @03:53PM (#2251516)
> Python and PHP have, comparatively, almost no swearing.

Of course. Python users are happy people.

I wonder what happens with PHP... ;-)

Re:Amount of profanity in git commit messages per programmin... by slig on Tuesday February 22, 2011 @05:47PM (#2251943)
For PHP, you'd have to search for "ass_hole", "fuckmother", "cock_sucker", and so on to be fair.
Re:Amount of profanity in git commit messages per programmin... by stcredzero on Wednesday February 23, 2011 @10:32AM (#2254370)
Reading the ones with the underscores makes me think this mode of swearing deserves its very own accent for when it's read aloud.
Re:Amount of profanity in git commit messages per programmin... by sibsibsib on Wednesday February 23, 2011 @11:59AM (#2254784)
thanks, I almost spit tea on my computer :)
Re:Amount of profanity in git commit messages per programmin... by mey on Tuesday February 22, 2011 @06:32PM (#2252100)
Complete lack of comments?
Re:Amount of profanity in git commit messages per programmin... by binspace on Tuesday February 22, 2011 @04:09PM (#2251578)
> I wonder what happens with PHP... ;-)

Ignorance is bliss?

> Of course. Python users are happy people.

Heh, I've been using Python lately and have felt lots of urges to swear, but I can't get myself to commit it. Shoot.

Re:Amount of profanity in git commit messages per programmin... by Palantar on Tuesday February 22, 2011 @05:28PM (#2251867)
PHP code gets delivered to the customer :)
Re:Amount of profanity in git commit messages per programmin... by megamark16 on Tuesday February 22, 2011 @05:46PM (#2251938)
Did they check swear words in other languages? ;-)
Re:Amount of profanity in git commit messages per programmin... by jedsmith on Tuesday February 22, 2011 @06:19PM (#2252051)
So does Python.
Re:Amount of profanity in git commit messages per programmin... by rbanffy on Tuesday February 22, 2011 @07:41PM (#2252367)
much fewer lines of it.
Re:Amount of profanity in git commit messages per programmin... by blah_blah on Wednesday February 23, 2011 @07:26AM (#2253848)
maybe they don't know about github?
Re:Amount of profanity in git commit messages per programmin... by xiongchiamiov on Wednesday February 23, 2011 @08:16PM (#2256561)
The same number of commits were taken from each language.
Re:Amount of profanity in git commit messages per programmin... by jamie_ca on Tuesday February 22, 2011 @03:51PM (#2251512)
> C++, Ruby and Javascript have the most profanity. They're relatively equal to each other and collectively account for more than 50% of the swearing in commit messages.

this is the problem. In the pie chart it's almost impossible to determine which of those three has the most. In the bar chart, it's fairly obvious to my eye that C++ wins, though JS/Ruby are very close.

Re:Amount of profanity in git commit messages per programmin... by nonny on Monday February 28, 2011 @03:38PM (#2272799)
Rather than being organized by language names, the items in the pie graph should have been grouped by size (largest at 12, proceeding clockwise to the smallest at 11:59, for example). What relationship is there to show between the grouped names of programs that outweighs making this clear?
Re:Amount of profanity in git commit messages per programmin... by lawfulfalafel on Tuesday February 22, 2011 @03:46PM (#2251491)
Dude, no. I think he was talking about how you can't tell how the size of the user base of a language is affecting the ranking. So, for example, only 1% of all projects could be in Java, but the swearing could be frequent enough to make it have ~15% of all curse words.
Re:Amount of profanity in git commit messages per programmin... by abraham on Tuesday February 22, 2011 @04:52PM (#2251739)
> Note that I ripped an equal amount of commit messages per language so the results aren't based on how many projects there are per language.

All the languages are equally represented by commit count.

Re:Amount of profanity in git commit messages per programmin... by saraid216 on Tuesday February 22, 2011 @05:06PM (#2251793)
but his total number is 929857, which is not divisible by 8
Re:Amount of profanity in git commit messages per programmin... by abraham on Tuesday February 22, 2011 @05:13PM (#2251811)
What a bummer... The percentages might be off by a fraction of a fraction of a percent...
Re:Amount of profanity in git commit messages per programmin... by saraid216 on Tuesday February 22, 2011 @05:25PM (#2251849)
I see no reason to believe that, given his process for ripping an "equal" number of commit messages per language was broken, that anything else even approaches validity. It's simple arithmetic; a grade schooler who notices that the last number is 7 would realize something's off.
Re:Amount of profanity in git commit messages per programmin... by abraham on Tuesday February 22, 2011 @05:33PM (#2251893)
What about the process is broken? Did you read the code and find bugs? With a total commit count of 929857 missing a single commit to round out to a perfectly even number of commits in each language is insignificant.
Re:Amount of profanity in git commit messages per programmin... by Retric on Tuesday February 22, 2011 @09:46PM (#2252765)
Or he had 929857 commit's and then he randomly sampled an equal number for each language. Thus, no division etc.
Re:Amount of profanity in git commit messages per programmin... by apotheon on Thursday February 24, 2011 @02:41PM (#2259496)
Then, of course, you have problems of sample size. Nearly a million commits is a pretty good sample size; a hundred, not so much.
Re:Amount of profanity in git commit messages per programmin... by lawfulfalafel on Tuesday February 22, 2011 @05:05PM (#2251792)
Sorry, my bad.
[deleted]
Re:Amount of profanity in git commit messages per programmin... by Symmetry on Tuesday February 22, 2011 @03:26PM (#2251391)
Ahem, "Note that I ripped an equal amount of commit messages per language". I do think this is a bad place for a pie graph, but your specific criticism here is misplaced.
Re:Amount of profanity in git commit messages per programmin... by Sandman on Tuesday February 22, 2011 @03:33PM (#2251428)
Yes, and? The amount of messages is equal, the amount of profanity per a set of commit messages (which is what is measured here) is not.
Re:Amount of profanity in git commit messages per programmin... by Symmetry on Tuesday February 22, 2011 @11:12PM (#2253000)
This was in response to a now deleted comment that claimed that more popular languages would show up as having more profanity because they have more commits, even if the profanity per commit was constant.
Re:Amount of profanity in git commit messages per programmin... by Sandman on Wednesday February 23, 2011 @03:05AM (#2253470)
I get it now. Sorry, my bad.
Re:Amount of profanity in git commit messages per programmin... by Tichy on Tuesday February 22, 2011 @05:11PM (#2251809)
What are you getting at?
Re:Amount of profanity in git commit messages per programmin... by baltcode on Tuesday February 22, 2011 @03:26PM (#2251385)
But he said he sampled equal number of commit messages from each language.
Re:Amount of profanity in git commit messages per programmin... by jedsmith on Tuesday February 22, 2011 @06:24PM (#2252069)
Re:Amount of profanity in git commit messages per programmin... by ph0rque on Tuesday February 22, 2011 @03:25PM (#2251376)
A good weekend project would be to take an existing graphing library and make a wizard for it that would create a correct type of graph based on the data and your stated intentions with the data, as shown in the flowchart above.
Re:Amount of profanity in git commit messages per programmin... by mnbvcxz on Tuesday February 22, 2011 @05:36PM (#2251900)
Thanks for reminding me again why I don't bother reading these forums. One day I'll quit clicking links too.
Re:Amount of profanity in git commit messages per programmin... by kd0amg on Tuesday February 22, 2011 @03:04PM (#2251281)
Note that I ripped an equal amount of commit messages per language so the results aren't based on how many projects there are per language.

I like how he had to tweak the data collection process to make the visualization method fit.

Re:Amount of profanity in git commit messages per programmin... by scott_s on Tuesday February 22, 2011 @03:30PM (#2251414)
That is not the case. He wanted to compare curse words across languages independent of language popularity. If he did not collect the same amount of data per language, then he would have two variables: number of curse words and number of commits. Then there would be the danger that a more popular language would have far more curse words simply because it has far more commits.
Re:Amount of profanity in git commit messages per programmin... by jamn on Tuesday February 22, 2011 @03:26PM (#2251387)
I wouldn't call it to 'tweak' the data collection. He is simply normalizing the results to ignore the differences in language distribution.

This is normal and has nothing to do with how you choose to represent it.

It would have been meaningless to show any graph or table saying 'Python has the most messages with profanity" if the amount of Python projects is 80% of all the projects out there.

Re:Amount of profanity in git commit messages per programmin... by waqf on Tuesday February 22, 2011 @05:23PM (#2251846)
He is right to normalize the results, but parent's point is that he is wrong to do that by modifying his data collection.

He should just collect as many commit messages as possible, then divide the profanity count for each language by the commit message count. Because that has lower standard error [and no more bias] than what he did.

Re:Amount of profanity in git commit messages per programmin... by masklinn on Tuesday February 22, 2011 @03:30PM (#2251410)
That's not the case, that's just his personal choice. He could just as well have gone with %age of swear words per commit which would have made the number of commits per language irrelevant (as long as that number was kept above statistical nonsense) and would have yield the same result.
Re:Amount of profanity in git commit messages per programmin... by albedoa on Tuesday February 22, 2011 @03:55PM (#2251521)
What are you talking about?
Re:Amount of profanity in git commit messages per programmin... by cookiecaper on Tuesday February 22, 2011 @03:10PM (#2251311)
That flow chart there is helpful, thanks.
Re:Amount of profanity in git commit messages per programmin... by AndrewVos on Tuesday February 22, 2011 @03:56PM (#2251525)
I added a pie chart :)