We find that open source code containing swearwords exhibit significantly better code quality than those not containing swearwords under several statistical tests. We hypothesise that the use of swearwords constitutes an indicator of a profound emotional involvement of the programmer with the code and its inherent complexities, thus yielding better code based on a thorough, critical, and dialectic code analysis process.

Histogram of SoftWipe scores for swear-repos compared to the theoretical normal distribution calculated from the sample mean and sample standard
deviation.
Histogram of SoftWipe scores for swear-repos compared to the theoretical normal distribution calculated from the sample mean and sample standard deviation.
Softwipe scores over LoC plot for swear-repos cut of at 70.000 LoC
Softwipe scores over LoC plot for swear-repos cut of at 70.000 LoC

My site is free of ads and trackers. Was this post helpful to you? Why not BuyMeACoffee


Reference:

  1. Is there a Correlation between the Use of Swearwords and Code Quality in Open Source Code?