Do better coders swear more, or does C just do that to good programmers?
Ever find yourself staring at a tricky coding problem and thinking, shit"?
If those thoughts make their way into your code or the associated comments, you're in good company. When undergraduate student Jan Strehmel from Karlsruhe Institute of Technology analyzed open source code written in the programming language C, he found no shortage of obscenity. While that might be expected, Strehmel's overall finding might not be: The average quality of code containing swears was significantly higher than the average quality of code that did not.
The results are quite surprising!" Strehmel said. Programmers and scientists may have a lot of follow-up questions. Are the researchers sure there aren't certain profanity-prone programmers skewing the results? What about other programming languages? And, most importantly, why would swears correlate with high-quality code? The work is ongoing, but even without all the answers, one thing's for sure: Strehmel just wrote one hell of a bachelor's thesis.