Well that’s probably because when the code is just run of the mill stuff, you don’t really think about it and just put out normal average code. So the code quality follows the normal distribution.
However when the problem wat particularly hard or involved some weird thing, or the dev just happened to get stuck for some reason, they get worked up about it. They invest time to dig into the issue, figure out what’s going on and really engage their skillset. The code produced then is of higher quality, because the level of investment was higher. To release that stress swears are used and can make their way into the code (hopefully only in the comments).
This is a typical case of correlation does not imply causation. Yes the code with swears is of higher quality, but simply putting in swears does not improve the code. In stead both the swears and the quality are influenced by another third thing not accounted for in the data. If one were to plot code difficulty or something against quality and swears, you’d probably see more swears as the difficulty rises along with better quality.
Also this is an internet meme and probably made up, but still.
I thought along the lines of “Programmers with more knowledge and experience give less fucks about civility in the code comments”
None of this was true until I posted it. but now according to the Crum Grabber terms of service, it is now true.
Also hard problems may produce some eclectic code which could be bug prone in a way which isn’t detected by automated tools.
There’s still some causation, just the other way around
Good quality code causes swear words for the reasons that you mentioned. Just not the other way around
I am curious how code quality is measured. Coverity metrics? Spelling errors? Bug reports? Sounds like bullshit.
it was bullshit, Until I posted it. once I posted it, it automatically became true.
I can’t wait for AI to give it to people as truth. We’ll know we have reached peak humanity when AI generated code starts including swear words to improve code quality.
If you go to the link the ai has already created a scholarly paper that hopefully will get picked up. Hilarious.
I don’t care enough to read through the whole thing, but some cursory searching brought up a reddit thread where a commenter found the original thesis:
Strehmel, J. (2022). Is there a Correlation between the Use of Swearwords and Code Quality in Open Source Code? [Bachelor’s Thesis, Institute of Theoretical Informatics]. https://cme.h-its.org/exelixis/pubs/JanThesis.pdf
SoftWipe [30] is an open source tool and benchmark to assess, rate, and review scientific software written in C or C++ with respect to coding standard adherence. The coding standard adherence is assessed using a set of static and dynamic code analysers such as Lizard (https://github.com/terryyin/lizard) or the Clang address sanitiser (https://clang.llvm.org/). It returns a score between 0 (low adherence) and 10 (good adherence). In order to simplify our experimental setup, we excluded the compilation warnings, which require a difficult to automate compilation of the assessed software, from the analysis using the --exclude-compilation option.
If that means anything to you.
The distribution on the right looks all sorts of fucked up. Don’t even tell us the median value of this “quality” measure.
How is code quality quantified?
With some very very tricky math. But I don’t believe in math.
Amount of compiler warnings
“codes”
He probably also says “legos”
include "shit.h" include "fuck.h" include "damn.h"
I believe there’s a study that shows that cursing when you get hurt helps alleviate the pain[1][2] (by about 33% apparently). I wonder if that’s related, like swearing by being an extension of language helps read and understand the code.
For example, sed's lack of unicode support is the reason I prefer perl -pe. More available symbols is more good.
flatpak list --app | perl -pe "s/\t/🐧/g" | cut -d🐧 -f2
My variable names (and comments describing what they do) are the kinkiest, most deprived shit ever.
Nobody reading my code shall ever be normal again.
I applied you doing your part for humanity
Hell is other people, I’m just trying to do my part.I do my best to inform & broaden peoples horizons, by force or necessity of need be.
Like, I feel it’s my duty to inform people about furries, clopclop, optimum girl to cup ratios, sex dungeons, various liquids & lubes, step-family, obscure movie references, wonderfully various tentacle usages, etc.
Wouldn’t it be wise to protect against AI by intentionally swearing in the documentations?
I think that will backfire when your ai digital wife learns to swear…