285 points · by AndrewVos · 15y ago · 184 comments
That set only includes [shit, piss, fuck, cunt, cocksucker, motherfucker, tits], so these are probably not meaningful results.
I have personality commented "asshole forgot to increment the counter" 527 times in 4 different languages.
[EDIT: 528 times in 5 different languages. Sorry, bitches.]
You'd want to whitelist against the Scunthorpe Problem though.
Damn is a curse, but not actually considered a swear word in most parts of the world.
Years ago at a former employer, we discovered just after shipping a large quantity of quite sensitive demo materials that an outside contractor had managed to slip a hidden profanity into it. Oh, the joy that caused....
The immediate reaction though was that a few of the less polite and proper members of the organisation were tasked with producing as close to an exhaustive profanity list as they could so we could do a relatively thorough sweep. From memory that list was pushing 40 terms - I think I might still have a copy somewhere but the last thing this discussion needs is more swearing!
For weeks afterwards, my clients would receive profanity-laden reminders, helpfully labeled as "from Adrian".
Luckily, they had a good sense of humour about it. But since then, I've never used profanity in any kind of test data.
Tip for anyone cacheing unsavoury words - from memory the bulk of what we ended up checking for were racial slurs, of which there's an astonishing (and unsurprisingly heavily localised) variety.
I cannot explain how much the injection of this in current use irks me.
Is this lack of civility, and appalling misogyny, really needed for satisfying self-expression nowadays?
You certainly don't speak on the behalf of any women I know.
Anyways, holla out to my HN bitches.
Is it because your post is a bunch of poorly conceived bullshit? Is it because you don't really give any time to consider the intent of what's being said and the social context of the terms employed? Is it cause you're looking to be offended?
If you can't provide some analysis of the origins of thoughts and feelings which are presumably your own, maybe you should keep them to yourself till you can.
"Blameless" bug:
Original: Now recalculates the height of the container element after repopulating
the content.
Translation: Did Bob test this fucking thing ONCE before he committed this?
Fixing my own mistake: Original: Tweaks the NUM_PATHS config value.
Translation: Wow, I apparently have shit-for-brains. I hope nobody ran a build in
the past 20 minutes.
Overdesigning: Original: Updates the object creation code per Bob's feedback.
Translation: Another Goddamn FactoryFactoryBuilder?! I officially don't
understand this codebase.
Major cleanup needed: Original: Style tweaks needed for GCC compilation.
Translation: OMFG. This isn't even valid C++. It doesn't even compile.
OK, I'm not perfect: Original: Fuck IE7.
Translation: No seriously, fuck IE7.Could develop quite a nice Programming Language Pain Index…
I will post up some more data if anyone is interested.
(For sample data, the 100 most vulgar words on the site are in a table here: http://onlineslangdictionary.com/lists/most-vulgar-words/ )
actually, maybe just a github swear browser.
Sorry, Ruby!
http://www.flickr.com/photos/amit-agarwal/3196386402/sizes/l...
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.
Of course. Python users are happy people.
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.
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.
All the languages are equally represented by commit count.
I like how he had to tweak the data collection process to make the visualization method fit.
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.
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.
It took a half-hour to write and has consistently gotten more traffic than the rest of my blog.
Ah well, give the people what they want: http://codeulate.com/2007/12/fcking-programming/
In particular:
# no, no, no, no, no, no, no, no
# no. fuck no. I am a fucking
# moron.
I think it's the punctuation. It's like angry japanese poetry.# This is hideous # I want to poke my eyes out with a fork!
C Perl JavaScript PHP
I also occasionally code in Python and assembly for fun.
When it comes to web projects PHP is my goto language because it works in all web environments without a bunch of bullshit surrounding installation, versioning or deployment. It's 2011 people, are you telling me developers are still trying to establish some sense of shiny self importance based on language choice? Sad.
Most of the developers are bad. Assuming a normal distribution, pretty much half of them are below the average and average is not usually something to brag about.
That said, languages that stand a higher chance of generating employment should attract those that don't want to learn new programming languages (something good programmers tend to do) and want to make their bets on sure technologies. I expect programmers interested in Lisp, Haskel, Erlang, Python, Ruby, Lua, Scala, Forth, Smalltalk to be, on average, better than those who choose Java, C#, PHP or Visual Basic. Of course, not all of those who choose these languages are bad programmers (and the opposite is also true), but I bet you will find more mediocre programmers on the second-group.
(burn, karma, burn)
There can also be humourous swearing, and swearing for emphasis (see DHH), neither of which convey annoyance at all.
Hypothesis A: PHP projects tend to be smaller and simpler, with fewer interactions with other code/requirements/people, and therefore fewer opportunities for annoyance.
Hypothesis B: PHP is actually a very simple and close fit to its use-case, of unambitious webapps, and so often the tool just does its job, and disappears. There's no space to swear at a tool that you don't notice.
# This new PHP library is fucking awesome!A lot of people love their tools just because they don't know better ones.
Speaking of frame of reference, people belittling PHP devs are mostly showing their own ignorance.
They don't write meaningful comments at all. Including those with swears, meaning at least something.
Joke #2: What would they have to put into commit messages, if you consider so much of PHP code is not written but copypasted? What to write then - "I copypasted it from X"?
It's the same reason there is no profanity it FORTRAN or COBOL in this graph.
The author makes a terrible mistake: he does not normalize the graph relative to the total amount of code in each language.
There's a lot of Ruby on Github, which is why you can find plenty of Ruby profanity.
The graph is just about useless without this normalization.
Although I think it's fair to say the proportion of beginners and casual projects using source control and Github is probably lower for PHP than, say, Ruby.
The number of different projects ripped, on the other hand, could help skew the results of the unpopular languages.
For instance, my style of coding means I branch off, commit early and often, with flippant and meaningless messages, and then I squash and rewrite my entire change as a single, formal entity before releasing it for coworker consumption. I curse up a storm in my commit messages, but you won't see any of them unless you look inside my computer before I delete the working branch.
This is fun and funny. Nothing about it even starts approaching validity except for one statistic: "210 out of 929857", and even that gets shot down. The entire thing would have been better if he had included "hate" as a curse word.
Those working on pubic GitHub projects are probably doing so willingly. After all, if you hate PHP and are forced to use it at your day job, do you really want to go home and commit to PHP projects? Probably not.
So, what you're seeing are people not merely resigned, but who enjoy working in PHP, for all it's warts. They aren't just resigned.
And I posit that it's because PHP programmers at that level are less likely to be surprised or scandalized by the language's well-known quirks than somebody working with Ruby or C++ (i.e. they are resigned to its frustrations).
There are a lot of people out there who think it's truly fabulous, also. Usually, PHP is their first language and they've never seriously tried anything else. They like the accomplishment of programming, and connect that with PHP.
{"JavaScript"=>48, "Ruby"=>46, "Perl"=>28}
I wonder if this has anything to do with: http://news.ycombinator.com/item?id=2247962
I know I plan to comment my python code a little differently now! Maybe that will help balance the numbers?
I know I'd be pretty vulgar if I programmed in C++/Javascript all day!
Maybe if we looks at comments in source code we would get a better representation of the vulgarness of developers.
Would be great to see some context around where the most _profanities_ occur by language, and the kind used.
Especially the F bomb.
I've found that the only real profanity in a source code comment is "HACK".
My swear jar overflows with quarters.
- fuck it. let's release
https://gist.github.com/198320
A one-liner I wrote that uses git blame to seek out who swears the most in a given codebase. Pretty fun.
A pie chart is good for things that add to 100%. The number of swear words that occur in something is not appropriate for this type of graphic.
This is not HN worthy.
Perhaps PHP and Python has fewer occurrences because the employers of people that use Python or PHP are less likely to tolerate inappropriate language in the code.
Maybe Python programmers are just happy and well adjusted people...
There's a certain level of professionalism in PHP projects, believe it or not, that is different from what you see in Ruby, Python, C++, etc. The difference? Many PHP programmers are not really hackers, they're just trying to get something done. They're not programming for the joy of it, for the most part, they're just trying to get some plug-in done for a CMS for some client.
The code and comments often end up structured and informational, in a Java kind of way.
Or maybe we're all just mature enough to realise swearing in comments is stupid, and trying to read anything from it is equally stupid?
Good job though :-)
If you're hacking on a personal project, you might feel freer to swear in your commits. And my guess is that you're more likely to code Ruby for personal projects than C#. But I could be wrong.