News for hackers. Stuff that matters.
Re:Correlation Between the Use of Swearwords and Code Qualit... by anonymousDan on Tuesday October 01, 2024 @05:34PM (#41714443)
Brilliant abstract.
Re:Correlation Between the Use of Swearwords and Code Qualit... by thefaux on Tuesday October 01, 2024 @05:44PM (#41714559)
I believe pretty strongly that swearwords are a negative indicator in the long run. It is one thing to voice your frustration internally or when debugging and another to ship them out into posterity, which is unprofessional. I was pretty turned off when I discovered that an OSS tool that I was using in an enterprise environment had a feature name that was also a dick joke. I was forced to use this tool by my employer without proper vetting and it ended up being a disaster. It was widely used in the field but fell on its face on some mission critical basics. I found and fixed a heinous bug due to their incorrectly using the openssl library. Ultimately, this tool ended up being a significant factor in the product I was leading failing.

Now, I will admit that the dick joke was not the cause of my problems but it was the first thing that put my antennae up and ultimately did lead me to uncovering a lot of problems with the project. That experience will forever make me wary of projects that expose such nonsense either in their public interface or in their code. Save that stuff for your private projects and friends.

Re:Correlation Between the Use of Swearwords and Code Qualit... by chromanoid on Tuesday October 01, 2024 @06:19PM (#41714870)
I think there might be a difference between FOSS and closed source software. I tend to agree with the interpretation that swear words are signalling emotional investment.

In my experience in closed source software swear words tend to point to deadline-driven dread of not getting it right while in FOSS it tends to describe disbelief about third-party APIs and platform bugs that have to be accomodated for.

Re:Correlation Between the Use of Swearwords and Code Qualit... by gopher_space on Tuesday October 01, 2024 @09:05PM (#41716200)
From my perspective comments (and error messages) in closed source software tend to form a narrative structure than their Open counterpoints can't really get away with. We aren't going to erase comments like ###EVERYTHING BELOW THIS LINE IS BULLSHIT because the guy who wrote it really knew what he was talking about and nobody has the time to look into it.

Dick jokes etc. in Open software just make it a school project... unless it's something like printing a giant dick once a millennium, or a dick acrostic only visible in some ancient terminal default.

Re:Correlation Between the Use of Swearwords and Code Qualit... by ACow_Adonis on Tuesday October 01, 2024 @06:41PM (#41715069)
It's the old bimodal distribution effect and trying to draw a linear correlation between them, or that meme with the two sides of the bell curve.

At some level, swearing is an indicator of emotional immaturity and a preponderance of subjectivity.

At another level, not swearing is repression, oppresion and a denial of reality and any investment in the project.

So what we want to see in the best projects are the programmers who are emotionally invested yet also objective enough to swear at the real situations around themselves and not repress themselves, but who aren't so emotionally immature as to swear because it's cool/edgy :)

Re:Correlation Between the Use of Swearwords and Code Qualit... by kayo_20211030 on Tuesday October 01, 2024 @06:08PM (#41714780)
The parts of code that always interests me, even above what the code does, is the human part of it - the comments, the names, the asides. Some are very funny. Crassness remains crass; but at some level the exhibitions of frustration, or joy, or disgust still amuse me immensely. It's the honest humanity of it that's intriguing. It says "this was written by a person".
Re:Correlation Between the Use of Swearwords and Code Qualit... by AyyEye on Tuesday October 01, 2024 @06:21PM (#41714894)
We still need to be reminded that computers are made by and for humans.
Re:Correlation Between the Use of Swearwords and Code Qualit... by polishdude20 on Tuesday October 01, 2024 @07:08PM (#41715301)
Honestly if I build something that is OSS, I don't care if company A is using it or not. If I did, I'd make it closed source with a paid license.
Re:Correlation Between the Use of Swearwords and Code Qualit... by enva2712 on Wednesday October 02, 2024 @01:39PM (#41723086)
you assume professionalism and technical ability are positively correlated. my anecdotal observations would lean the other way but i have no data to substantiate this on

i do disagree with the methodology of the paper though - adherence to standards is a metric of conformance to a status quo, which as someone else’s comment points out feels like the midwit meme

Re:Correlation Between the Use of Swearwords and Code Qualit... by croes on Tuesday October 01, 2024 @06:15PM (#41714838)
Re:Correlation Between the Use of Swearwords and Code Qualit... by mkj on Tuesday October 01, 2024 @06:54PM (#41715191)
The analysis doesn't seem to have controlled for the number of comments in code. Maybe commented code is higher quality, and comments have some chance of swearing.
Re:Correlation Between the Use of Swearwords and Code Qualit... by Rocka24 on Tuesday October 01, 2024 @07:14PM (#41715358)
I was also thinking the same thing. It should have been easy to parse for it because they were only checking articles in C anyways. Some frustrated coders could vent some rage against the machine in comments.
Re:Correlation Between the Use of Swearwords and Code Qualit... by dang on Tuesday October 01, 2024 @07:07PM (#41715292)
Discussed at the time:

Open source code with profanity in comments is statistically better - https://news.ycombinator.com/item?id=36584464 - July 2023 (214 comments)

Correlation between the use of swearwords and code quality in open source code? [pdf] - https://news.ycombinator.com/item?id=34761052 - Feb 2023 (59 comments)

Do better coders swear more, or does C just do that to good programmers? - https://news.ycombinator.com/item?id=35157212 - March 2023 (2 comments)

Higher quality code contains swear words - https://news.ycombinator.com/item?id=34757419 - Feb 2023 (1 comment)

Re:Correlation Between the Use of Swearwords and Code Qualit... by WalterBright on Tuesday October 01, 2024 @07:40PM (#41715616)
In the D programming language forums, we don't allow swear words. It's just unprofessional.
Re:Correlation Between the Use of Swearwords and Code Qualit... by Nasrudith on Wednesday October 02, 2024 @01:02PM (#41722721)
I guess D prefers constant dick jokes and innuendos instead? They're kind of asking for it with their choice of name for their language.
Re:Correlation Between the Use of Swearwords and Code Qualit... by WalterBright on Wednesday October 02, 2024 @01:21PM (#41722909)
We require professional demeanor in the D forums at all times.
Re:Correlation Between the Use of Swearwords and Code Qualit... by secondcoming on Tuesday October 01, 2024 @07:44PM (#41715656)
The ranty thread about posix and locales remains one of my favourites
Re:Correlation Between the Use of Swearwords and Code Qualit... by jart on Tuesday October 01, 2024 @09:41PM (#41716400)
If you're studying a junkyard, the few pieces of junk their owners swear by are probably better than the other junk.
Re:Correlation Between the Use of Swearwords and Code Qualit... by singularity2001 on Wednesday October 02, 2024 @07:40AM (#41719471)
I'm too fucking lazy to Google the paper about a more general relationship between swear words and intelligence
Re:Correlation Between the Use of Swearwords and Code Qualit... by cozzyd on Wednesday October 02, 2024 @11:01PM (#41726957)
Given that fuckit.[py,js] is one of the most well engineered libraries...