Live data from Hacker News

Data on Swearing in Programming Languages

mahdiyusuf.com

21–30 of 37 posts

Re: Data on Swearing in Programming Languages

#21
post #19

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.

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

#22

    #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

#24
post #2

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!

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

The results are normalized to # number of commits.

Re: Data on Swearing in Programming Languages

#27

Ha. I just made a hack about this at PennApps - http://www.commitlogsfromlastnight.com

Can you explain where this data is coming from?

(Also, go Penn! It's cool reading a hackathon website and thinking, "Towne 100? That's where I had that one BE lab...")

Re: Data on Swearing in Programming Languages

#30
post #7

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, &…

Haskell and Lisp programmers are ascended beings, and are beyond the mortal desire to cuss in commit logs.
Post reply on HN