As any programmer can tell you, programming will make you swear. But did you know that writing C++ will make you swear considerably more than PHP or Python? 
Developer Andrew Vos was looking for a weekend project when he decided to grab some one million commit messages from GitHub and scan them for swear words. He limited the swearing to George Carlin’s seven dirty words and then broke down the results according to programming language. 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.
C++ takes top honors, but just barely. Ruby and JavaScript are neck and neck behind C++. After that it drops off considerably with C, Java and C# placing in the middle. Python and PHP developers are either very happy about using those languages, or perhaps just very mild-mannered developers. Of course just because they don’t swear in commits doesn’t mean they don’t swear. As one commenter on Vos’s post says, “I program in Python, but all my cussing is related to IE.”
It’s impossible to know how many developers are swearing at their screens while writing code, but if you’re looking for a less swear-word-inducing programming language, PHP and Python seem to be the way to go.
Even more interesting than the statistics by language are the actual commits, which you can check out on Vos’s GitHub account. Our personal favorite: “fuck it. let’s release.” Indeed.

As any programmer can tell you, programming will make you swear. But did you know that writing C++ will make you swear considerably more than PHP or Python?

Developer Andrew Vos was looking for a weekend project when he decided to grab some one million commit messages from GitHub and scan them for swear words. He limited the swearing to George Carlin’s seven dirty words and then broke down the results according to programming language. 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.

C++ takes top honors, but just barely. Ruby and JavaScript are neck and neck behind C++. After that it drops off considerably with C, Java and C# placing in the middle. Python and PHP developers are either very happy about using those languages, or perhaps just very mild-mannered developers. Of course just because they don’t swear in commits doesn’t mean they don’t swear. As one commenter on Vos’s post says, “I program in Python, but all my cussing is related to IE.”

It’s impossible to know how many developers are swearing at their screens while writing code, but if you’re looking for a less swear-word-inducing programming language, PHP and Python seem to be the way to go.

Even more interesting than the statistics by language are the actual commits, which you can check out on Vos’s GitHub account. Our personal favorite: “fuck it. let’s release.” Indeed.


Subscribe!

Want to be notified about new blog posts and various thoughts on releasing announcing and creating products? I’ll let you know. All you need to do is enter your email below.

I hate spam too, so you have nothing to worry about.

No spam ever, just useful content. Unsubscribe at any time.

48 notes

  1. p0intles5 reblogged this from karnaugh
  2. pradeek reblogged this from dustyprogrammer
  3. bonmassar reblogged this from dustyprogrammer
  4. thetahd reblogged this from dustyprogrammer
  5. icodetolive reblogged this from dustyprogrammer
  6. karnaugh reblogged this from dustyprogrammer and added:
    :D True, true.
  7. thehanna reblogged this from dustyprogrammer and added:
    I’m honestly surprised...wasn’t higher.
  8. abbasali reblogged this from dustyprogrammer
  9. missu reblogged this from dustyprogrammer and added:
    Because Python is effing awesome!!
  10. carnotaurus reblogged this from dustyprogrammer and added:
    PHP and Python make me want to swear.
  11. vicanita reblogged this from dustyprogrammer
  12. ehalcyon said: Some of the swears aren’t “#$@#$# everything is broken though”. Some are more along the lines of “f yeah” or “moving some shiz”.
  13. jamesgifford reblogged this from dustyprogrammer and added:
    This is almost freaky, but it makes sense. I just hope I’ll always be able to keep my Ruby code commit comments clean….
  14. ajaymurthy reblogged this from dustyprogrammer
  15. bikertux reblogged this from dustyprogrammer
  16. inbetweenthepanels reblogged this from dustyprogrammer
  17. dustyprogrammer posted this