Comment Profanity by Language
beret found a nifty little pie chart breaking down
profanity in code comments broken down by language. He used Carlin's Seven Words, and C++ came out on top while PHP users are either wholesome or perfect.
← Back to Stories (view on slashdot.org)
Perfection is the enemy of progress.
More like they never fucking comment their motherfucking code.
Perl programmers never put in profane comments, because cursing in Perl itself is much more satisfying.
ad logicam Claiming a proposition is false because it was presented as the conclusion of a fallacious argument.
Now do profanity + browser names for javascript.
C++ Templates will turn the most pious programmer into a curse-slinging, chain-smoking alcoholic.
are under close observation and medication, any profanity is silently ignored.
insecurity asks the wrong question irritation gives the wrong answer
There's also a bar chart because somebody couldn't interpret the pie chart....
They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance. - Terry Pratchett
This would be better if I could find out at all what a commit message is.
Like isn't polymorphism a reference to the ability to fuck anything up - with class?
Orwell: "In a Time of Universal Deceit, telling the Truth is a Revolutionary Act"
To see the results with a few choice words added to the Carlin's Seven. Offhand "Kill", "Hate", and "Die" would probably show themselves quite a lot.
Common Sense isn't as Common as people think...
Actually, contrary to the summary, this article has nothing to do with code comments, and so the amount of comments per code has no effect on the results. The profanity measured in the article is from git commit messages.
C++ came out on top
Actually, JavaScript, C++, and Ruby came out on top. The difference between them is virtually indistinguishable (error bars anyone?).
As a goddamn PHP programmer, I am fucking glad that those cocksuckers don't put a lot of profane shit in the fucking comments. Unlike those asshole C++ programmer bastards. Goddamn cunts.
These are commit comments, which I can hardly see worth the effort to curse. Maybe C++ and Ruby developers are more rule based than others so they are more dedicated to making entertaining commit messages?
"She's a scientist and a lesbian. She's not going to let it slide." Orphan Black
What a tard.
' Mom! Why doesn't this code work? Can I have a cookie and fix it later?
Have gnu, will travel.
PHP users are both. Obviously.
If I have an expletive in c/c++ code, it's probably because it's a hard fucking problem. If I have an expletive in PHP, it's because PHP sucks shit straight from a donkey asshole. In other words, directed at the problem or directed at the fucking toy language.
Do you even lift?
These aren't the 'roids you're looking for.
This could be a crude (pun intended) reflection of how difficult the languages are to use.
Why is Snark Required?
Maybe the PHP people just can't decide if the swears should be nouns or verbs.
Could there be a discrepancy between those languages that are used more often to create personal projects rather than for work? I can see cursing taking place when in an informal setting. Like that of a personal project with a friend or something. So the languages more often used for those kind of projects would have more cursing yeah? Plus all the documentation for Ruby is in moon runes so there's bound to be some cursing when you don't understand what you just did.
First thing I thought of, to be honest. As a Python programmer, I can say it makes me pretty happy as a language.
I like to think of online DRM as something akin to a college -- you pay for lessons until you learn something.
When I was in high school many moons ago I wanted to get into a programming class but my grades weren't good enough so I had to submit some programming work to the teacher. I gave her the source code for a BBS I had written. I remember having to go through the entire source base looking for profanity I had used in variable names, comments, etc. Being the teenager that I was I would sometimes just use them for no reason.
I remember laughing to myself when I handed her that code. It must have been over 200 pages of printed source and I could tell she probably couldn't even write a sort function. This was back in the 80's when the educational system had almost no computer classes, let alone programming.
It was at that time I realized that sometimes other people look at your code and it can reflect on you. I have never used profanity in source ever again. I also never berate other people's stuff in my code (like poorly written API's I have to use). Clean and professional makes for more readable code and keeps everyone happy, including myself.
The ratio of people to cake is too big
As expected, no tits showed up in millions of git commits.
The Wise adapts himself to the world. The Fool adapts the world to himself. Therefore, all progress depends on the Fool.
Obligatory Leisuretown
http://www.leisuretown.com/library/qac/28.html
Yes, we had someone at work do this, and yes, from that day on we referenced him as F.B. (in polite company).
How about to normalize the numbers not per commit but per word? Maybe c++ programmers just happen to write a detailed commit message while php progammers tend to write "bugfix" without anything else.
Here's my comment irkedness rating:
- C++, JS and Ruby seem to generate most profanity :))
- Python & PHP compete for for least profanity
- C is somewhere in the middle
I would have expected a lot more bolorful language from the python bommunity.
Silly bunts!
-- In the beginning was the WORD, and the WORD was UNSIGNED, and the main(){} was without form and void...
So how long will it be, before we see an influx of profanities in PHP and Python, just to ruin their squeaky-clean images?
In PHP... your "comments" have a way of being read/interpreted by the web server, the same system that is displaying the web pages to users. Your comments are always in some danger of being exposed to humans (just like the source code).
Whereas, C++ programs are compiled, always. The end user never has access to comments in the source code, unless you have a very very strange compilation script that embeds some code as a string.
Also, there is the fact that PHP coders are notorious for confusing uncommented code. Instead of swearing in the comments, they make you swear after trying to read their code, which has zero meaningful comments, and possibly a few comments that will be just plain wrong or confuse the hell out of you.
Creator of Ruby? Dude's a hypocrite... Ruby is a 4-letter word after all.
Looking back on my years writing JS for various web apps, I'm not surprised that JS is up there. If only that it were the comments for each of the many differences in IE's JS engine.
Jquery may be dumming down the new generation through abstraction, but I can't help feeling relief thinking about all those niggly little IEisms, which I no longer have to deal with.
I think most people don't consider that most of the projects at GitHub are written in Ruby and JS and in a very low percentage in PHP.
1) 1 million commit logs, but only 210 "hits" distributed among the 8 independent variable categories. Not great, since a couple "colorful" individuals, or developers with digestive tract problems or lots of baggage on their minds, could easily turn the graph.
2) I would expect that projects (and by extension, programming languages) that attract multiple developers, especially more than a handful, would be fertile ground for developer misunderstanding and/or disagreement and, hence profanity. So to some extent that's what these charts may be measuring.
Clearly, calling someone "fagbot" is a mature and professional response when someone criticizes your source code. I suppose if they actually found it funny, maybe it's OK, but I can't imagine deciding to call someone this.
My first thought was, "What no Visual Basic"? Then I realized it was redundant, Visual Basic is profanity.
Honestly. I wouldn't ever consider checking in code that contained profanities. Same goes for test data and exceptions. Honestly, when a program fails, its not acceptable that the user see profanities. Its the mark of a poor programmer.
A bad craftsman blames his tools. Cursing in code or in comments is about as unprofessional as you can get.
The C++ developers are least likely to expect their code to be read by the end-user (or anyone else). While the PHP programmers are most likely to have their code read by the end-user.
gknoy@anasazisystems.com
Most of these were probably swayed by a single coder of that specific language. Duh.
I would hazard to guess that the accessability of the source files directly affects how relaxed an approach one takes to comments. I imagine that client-side scripting languages like javascript would have the least profanity, since the comments you write are delivered direct to your clients. PHP would probably carry a bit of this stigma, even though the comments are hidden in the server -- plus there's still a chance that the programmer's client is the guy running the server, so the client in that case can still see the comments. C++, however, not only protects its source files by multiple stages of compilation and obfuscation and magification, it is also the syntactically single worst programming language ever expressed upon the world*, so the programmer both: feels the desire to swear in comments, and is pretty damned sure the client won't ever see it.
* perl doesn't count, it's not even a language; it's an excuse for "certain types" to feel superior to the rest of society, while simultaneously protecting society from overexposure to those people
In my experience, Rubyists think profanity is cute ever since the famous DHH "Fuck You" slide.
Misconfigured Apaches dump PHP source code out all over the helpless user. Perhaps PHP developers swear less because they expect more eyes on the code due to this kind of accident.
I am very comfortable implementing C++ templates.
The only issue I have is when I am trying to debug them, as most debuggers give output that is barely legible for non trivial template code.
END COMMUNICATION
Shit, Piss, Fuck, Cunt, Cocksucker, Motherfucker, Tits
to you too!
C, C++ and C# I'm not surprised about, you can't decompile them, so developers probably don't care.
linux-2.4.37 arch/sparc/kernel/ptrace.c line 69: /* Fuck me gently with a chainsaw... */
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.4.37.y.git;a=blob_plain;f=arch/sparc/kernel/ptrace.c;hb=HEAD
... I curse in the actual code!
int *sh_ttyF_ckingPointer = &gSomeSh_ttyArray[MAGIC_F_CKING_NUMBER_A_SHOLE];
On my last project, someone added a third-party Javascript calendar. I was horrified to discover that it had a function called continuationForTheFuckingKHTMLBrowser().
It's one thing if it's server-side code, and I'll occasionally slip up and put "wtf" in a PHP comment (usually in some "never happen" safety block). But don't do it where inquisitive and technical users (of which we had several) can get at it. And certainly not in code that's intended for others to expose to *their* users.
After I'd renamed that function and committed, I searched the entire project for every swear word I could think of. Amusingly, though the rest of the source was clean, buried in the bytecode of our packaged-up WAR file was the sequence upper-case F, lower-case u, c, k, exclamation mark. Even the compiler was at it!
Nah. PHP and Python users aren't wholesome, they just can't spell.
I would suspect that the vast majority of profanity result from someone needing to read though some piece of code to determine what it does, and needing to waste the brain cells to fix some issue...
Profanity is a way of life for me. I love seeing profane comments in code—especially when they are someone else's AND relevant.
Clean and professional might be fine for you, but for fucking assholes like myself, it's fucking boring.
(My commits aren't any better.)
Finding out that the H1B Programmer you just replaced on a project that was due a couple of weeks ago didn't understand the concept that C strings are null terminated is worthy of a profanity or two in comments. Having management need MORE than that to justify throwing everything away and starting over is grounds for a few more.
I'm trying to teach myself to set people on fire with my mind... Is it hot in here?
There has been a revival of screw theory in the study of robots and other machines. The basic idea is that any two rigid body postures can be connected by a helical (screw) motion along a single axis line -- this is attributed to Chasles (as in Chasles' Theorem).
Recently, a keyword search on this topic turned up a paper titled "Jerk Influence Coefficients, via Screw Theory, of Closed Chains." All of those words have an innocent meaning. Jerk is the derivative of acceleration as acceleration is in turn the derivative of velocity. Screw theory refers to Ball's Treatise on the parameterization of rigid body motions, and yes, a rigid body has a strict theoretical definition as well. A chain is a connection of links, such as in a robot or an automobile suspension mechanism, and a closed chain refers to where both ends are connected to the same reference body.
Yes, the people who publish in this field are not innocents and are fully aware of the cant meaning of all of these words and perhaps it is an inside joke in the community. But what was unexpected was that Google thought I was a leather-cruiser-culture gay person for turning up that paper (jerk, screw, chains), offering ads for "Find an HIV specialist near you", "HIV Treatment Basics", and the like.
Along those lines, I have gotten surprisingly little grief for my Slashdot handle, which derives from my geek interest in phase change as mediating heat transfer in heating, cooling and renewable energy systems. "Latent" is a somewhat archaic term for what people nowadays call "closeted", and "heat" has always meant "desire", and that double meaning is not what I had intended. But not that there is anything wrong with that!
C has less profanity than C++??? What the fuck is this world coming to?
The top 3 are C++, C, and JavaScript, which are pretty much the three most badly designed and most frustrating languages on the list. No wonder they lead the list in profanity.
Obligatory Leisuretown
http://www.leisuretown.com/library/qac/28.html
WTF Was that jibberish?
Would be an interesting look at some of the reg ex debugging I've had to do!
http://www.gibby.net.au
I'd imagine most of the swearing in PHP is in Hindi these days.
When I read the title of the summary I was crushed when TFA didn't mention my Mother tongue, FORTRAN. I've seen some serious ranting in FORTRAN comments, but then I saw that it was "commits" and not "comments" and it became clear - no self-respecting FORTRAN programmer would have anything to do with something named "git" - I think that's covered in the classic "Real Programmers Don't Eat Quiche."
$shit = new Piss($fuck, $cunt, $cocksucker, $motherfucker, $tits);
-- thinkyhead software and media
They should have had comment profanity based on modified vendor code. Though the best comment I saw was on a mud monster special code in C that basically questioned the honor of the woman's mother and her mother's mother in stuff I can't post on here.
Refactor?
Unity? Screw that: XFCE. Slashdot Beta? Screw that: SoylentNews. Australis? Screw that: Pale Moon. UX developers DIAF
I was looking through some old 'desktop crap' folders the other day, when I found a screenshot I'd been looking for for a while now. I took this screenshot of an error message in the EVE-Online beta back in 2003. I'll tell ya, I laughed pretty damned hard the first time I read it. "Something is fucked." may be ambiguous, but it's certainly concise and to the point. ;) http://media.giantpachinkomachineofdoom.com/blog/2011-02/images/evebetaerror.png
Friend: "The NIC is misconfigured..." Me: "No prob, I'll just telnet in and fix it." *Silence*
Trying to do text handling on FORTRAN IV or even FORTRAN 77 would make practically ANYONE swear! ;-)
First thing I thought of, to be honest. As a Python programmer, I can say it makes me pretty happy as a language.
I read that five times before I figured out what you just said. Past my bedtime. Just for shits & giggles, though, recognize the ambiguity in how the last sentence could be parsed (the way you obviously intended, vs. the alternative my sleep-deprived brain was trying to chew on, which can be made clearer by changing the word order slightly: "I can say as a language that it makes me pretty happy." (What, he's a langauge? I don't even... oh... my caffeine levels are dangerously low...)
FWIW, I hate Python, but it's better than PHP... ;p
"Convictions are more dangerous enemies of truth than lies."
I'm sorry , but function names that long just end up producing code that is a lump of unreadable text with each line wrapping around my terminal multiple times. I'm not advocating going back to single letter variables etc , but sometimes a reasonable amount of brevity is a good idea.
I am the sole responsible for:
1. "Foda-se mais esta merda! Desisto! Quem é que fez este XML?" (Fuck this shit! I give up! Who made this xml feed?" for two hours on the homepage of a major info site.
2. "A merda do webservice fodeu-se" (The shitty webservice fucked up!) for 4 or 5 days on teletext.
I now only curse on safe places. Like on places I *know* will never be seen. err....
"If I have been able to see so far, It is because I went out and bought a damn binoculars" - Ze da Esquina
Nothing like a programming language discussion to bring out the elitist snobs.
[John]
Shit better not happen!
Maybe they're just not solving any difficult problems that require a healthy dose of profanity to fuel a proper solution?
The answer is 43
Sorry folks but everyone who thought the answer to Life, The Universe and Everything Else was 42 is incorrect. It's Odd
Mod me up/Mod me down: I wont frown as I've no crown
how did you know it wasn't doing what it was supposed to do
It's supposed to do what I mean. Sometimes if doesn't even do what I say.
--
You must use your power of low standards -- Wally
Linus has said, "I'm an egotistical bastard, and I name all my projects after myself. First 'Linux', now 'git'"
I think this chart demonstrates that python is less annoying to use than ruby.
Some of the best stuff isn't in the commit message but obscured in the commit text. One of the best resentment commits I've seen:
http://brlcad.svn.sourceforge.net/viewvc/brlcad/brlcad/trunk/src/mged/mged.c?r1=31006&r2=31008&view=patch
Pure awesome.
Cheers!
Sean
Great text editor but I was using it once and it threw a "Goddamn Exception". Not just in a comment but a popup window. I bet there are some real jewels in the comments...
There must be something wrong w/ my team. When I first introduced them to the FCKEditor, they all read it as the Fuck Editor...