devxlogo

Profanity in Code Comments by Programming Language

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

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist