Profanity in Code Comments by Programming Language

Andrew Vos recently ran an unusual analysis of code comments on GitHub that’s attracting some attention. Using George Carlin’s “Seven Dirty Words,” he analyzed 929857 commit messages and found 210 swear words. He then broke it down by programming language.

According to Vos’s data, C++, JavaScript and Ruby developers were the most likely to curse, with close to 50 profanities found in projects written in each language. By contrast, PHP and Python developers had relatively clean mouths.

The blog post also breaks the data down by word and tracks the use of omg, wtf, zomg, lol, and rofl, as well.

View article

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: