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.
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.
:D True, true.