by holowoodman · 1y ago · 0 comments
I see three reasons to use swearwords sparingly, even though they don’t particularly offend me.
1 Managing my own emotions. Most swearing is negative and that drags you down which is not very productive or fun.
2 Managing others‘ emotions as they burst out, which stresses the people around the swearer.
3 Some people just can’t say a fucking sentence without gratuitous swearing which makes them sound fucking stupid.
A few years ago, they went to a fan event here in Japan hoping to buy multiple copies of a zine for their friends overseas, and when told they could only buy one copy, they stood in front of the stall and cursed profusely in English out of frustration. After the event, they found that the Japanese side of the fanbase had unfriended them and removed them from online communities because of their outburst. They were completely blindsided by this. (In fact, their version of the story was just, "I went to an event in person and after that everyone unfriended me, I don't know why they're like this." I only heard about the swearing incident from a mutual friend.)
Anyway, there's obviously degrees and nuance here but I think people who swear profusely-but-not-at-anyone-specifically don't realize it still sometimes comes across as hostile.
I think this is subjective.
Swearing in the workplace is much more normal here in Australia. In my first job at an American company, I was shocked how prissy people were about swearing. In my head I thought “these are adults, right? Why is everyone acting like a blushing teenager?”. I’m sure I sounded rough as guts to them. It took ages to learn to scale it back depending on who I was talking to.
Swearing with someone about / at work is kinda an Australian way to say “I trust you and feel relaxed around you”. Forcing myself to not swear felt at first like I was pretending I didn’t like my coworkers. It was weird.
I don't think swearing is necessarily negative though; it can often be fairly neutral, or funny/positive. But again: in text it can be tricky.
I don't personally care if a swear word appears in code, but I do care if I offend others with my use of swear words. So, I try to limit their use to circumstances where offense is unlikely. Work is rarely such a place, particularly with shared resources like code. I might swear in a 1-on-1 conversation at work, but I definitely don't drop swear words into documents that unknown people might see. That's just basic professionalism.
Also we should look to add more keywords to programming languages that trigger naïve filters. I'm all in for another era of broken censorship to poke fun at the people who know nothing, but always have an opinion.
1. Reputational harm in the event that code needs to be shared. Say, the code gets read in court, or an outside consultant is brought in who is given access to the code. The company likely wants to maintain the same standard of professionalism that they expect when their employees write or utter spoken language in the workplace for the same reasons.
2. Similar to #1 but nuanced enough to deserve its own mention: code is a business asset. It can be sold or licensed out. The company may fear that language that it deems unprofessional could depreciate the value of that code in the context of selling or licensing it to 3rd parties.
Personally I think that the fuss over "bad words" is deeply irrational to a religious degree. The idea that arbitrary sequences of phones or characters will cause anyone within ear or eye-shot to become offended is rather absurd. But you can't choose what planet you do business on and, on Earth, there are a lot of silly people.
No more absurd than the notion that a mere sequence of sounds could convey any other meaning or elicit any other response.
Disagree. The fact that voluntary communication works is somewhat miraculous, sure. But the idea that a reader could be made to experience something unpleasant against their will by mere words is far stranger. Obviously unpleasant meanings can be conveyed through words, but the idea that the words themselves can be inherently unpleasant feels like some kind of moral panic/social contagion (like if there was a satanic panic centered on the "brown note") rather than a real thing.
I would argue that the person is at fault. Unless you are suggesting one does not have a choice whether to laugh or not.
If that were true, then all comedians would either be funny, or not funny, for all people. That is simply not the case.
I completely disagree. It is a lot more absurd. Language is not a priori. It must be learned. It requires both a speaker and a listener. Both must understand the meaning of the spoken word as well as other factors of communication, including tone and body language, in order to interpret and understand the communicated meaning.
The idea behind a "bad word" is that the word is offensive no matter what. It doesn't matter what the dictionary definition of the word is, or the intended meaning of the word or the subject of the sentence that employed the word. The word is intrinsically "just bad" according to this religious belief.
Objectively, sometimes there are polite ways to use a "four letter" word such as "fuck." The preceding sentence is one such example. But ... if you hold the irrational view that I am describing, there is no such thing. It is ALWAYS "bad." This is a faith based belief system. There is no grounding for such a position. Under such a position, even an academic discussion of the word would require it be censored for fear of offending someone.
Needless to say the customer was not amused. So the simple solution is just ban the bad words from the source code.
Depends a lot on the culture. In the countries I've worked in, anyone trying to forbid profanity in the workplace would be laughed out of the room. The laughter would likely turn to anger if it turned out to be Americans trying to impose puritanism on another country's project
You have to fear that everyone will react like the most sensitive that exist (as incredible rare as they are). And, you have to fear those who are offended for others even more so, since those are the only ones you’ll have a nonzero chance of interacting with.
The contextless swearing seems so unnecessary and adds nothing to the code, whereas a comment with a curse word in it reads way more human.
Agreed.
Context matters a lot. People say "shitty code" all the time. I don't see that as unprofessional. But "dicks01" I would probably change if I came across it in code. Not because I would find it offensive, but because it serves no purpose other than to be juvenile... and that can easily be counter-productive if the goal is easy to read and maintain code.
With respects to "shitty code", I'm not even sure that I would personally even consider the word "shit" to be a swear word in 2025. I'm reminded of the TV show on Showtime called Bullshit (by Penn & Teller). They wanted to name the show "Humbug", which was considered profane in the early 20th century when Houdini was alive and famous. But Showtime didn't like it because they figured it wouldn't land with a modern audience. "Bullshit" it was.
That said, the article even includes the word "crap" (though perhaps they are making the point that it is replacing other, "more profane" words). That one strikes me as odd. If that is considered rude and offensive, then surely "humbug" ought to be as well. Probably very culture-specific.
That said, I don't take issue with cursing in code that remains private to the development staff. As others have said more eloquently than I can, the issue is when it is exposed to customers who might take issue and churn. Not a good look, so for better or worse, there are professions where professionalism cozies up to sterile language.
I can swear a lot while talking. I have, once or twice, written curses in my code, sometimes including curse words, especially professionally. "Within this function lie buried the bones of those intrepid explorers who came before you. It is hallowed ground, and cursed be thy soul if you re-order anything without a +2 from a priest. You have been warned."
I find your assertion to be absurd. Do you really believe that no one should ever be upset by something someone else has said? If so, you have a huge misunderstanding of nearly-universal human behavior.
In a previous workplace, the people in charge prohibited swearing in our code after they had the pleasure of reading those swearwords in a stack trace within a log generated by our software, which we received attached to a complaint email from a major customer.
There's just no good reason for swear words to be committed. You want to swear about the code, do it in a chat room or something.
How common is this? I work in a big corporation and we have no such policy.
When we contribute to open source, there's a good chance they'll make us remove any. Internal code, though? Up to each team to decide.
Just plain not true.
You're contributing to something that runs on billions of devices across the world and is maintained by people around the world of all types. If you can't describe your code, your reasons, and your notes politely, do better.
I think so-called "professional" speech - which I'd call bland and often ineffective speech - is professional in the same way that a suit and tie is professional. It's a uniform to ensure nobody stands out, and the corporation can absorb everybody's personality, like flour incorporated into bread dough. White bread, no seeds.
//stupid hack = somewhat ugly thing I am doing to somewhat solve problem because I am perhaps not clever enough to think my way to solution at this time. Example - when I set the center of the map to be a couple decimal points of latitude off from where the address actually was because the designer wanted the address to be not in the center of the map, because then it would be covered by the search box, but slightly above the search box. Stupid because I bet there was another way to do it, also stupid because it was not exact and so we did not know exactly where the address was going to be drawn in relation to the search box, but we knew pretty closely where and that was good enough.
//stupid fucking hack = ugly thing I am doing that must be done to get around problems even though as well as being ugly it is also less than optimal in multiple ways, requirement for this hack caused by third party who have screwed us over by their very existence which makes me incredibly angry Example: put span around any text node inside of an element rendered by React using a Ref to get around the Google translate bug and similar problems.
Something that's a mere "hack" might be something I don't mind, but worth being aware of and revisiting if and when the code becomes more complicated and has to do more things.
A "stupid fucking hack" indicates something that could have only come about by a whole chain of stupidity and mistakes, inflicting brain damage that we're now stuck with, to great anguish and misery.
Those things are important to highlight, if only as lessons in what not to do.
At least I can have a laugh while looking at the hack someone came up with...
I take you also strongly believe then that when I waltz up to work in some random hoodie, sweatpants and running shoes, that's actually some bespoke eloquent expression of self, full of meaning?
Reminds me to all those "he/she is wearing this/that kind of glasses/shoes, that means <extremely specific personality trait>" scenes from older movies and shows. Holy hyperbole.
https://www.scientificamerican.com/article/is-swearing-a-sig...
"Overall the findings suggest that, with the exception of female-sex-related slurs, taboo expressives and general pejoratives comprise the core of the category of taboo words while slurs tend to occupy the periphery, *and the ability to generate taboo language is not an index of overall language poverty.*" [* Emphasis mine]
Edit: realized the article does make the distinction between the ability to generate profanity and the willingness to do so, which while interesting is mere conjecture propped up by an anecdote within the article. I contend there are times for profanity and times for avoiding it, but suggesting that because someone chooses profanity they must be less intelligent is perhaps a comfortable idea, but it may also be an elitist one.
[1] https://www.sciencealert.com/swearing-is-a-sign-of-more-inte...
> and is maintained by people around the world of all types.
You seem to think that the whole world shares your definition of "polite". After living in a few quite different countries, I have to disagree. The diversity out there is huge. There's no point trying to solve this "problem", it's an impossible task.
For some reason, "tabs are banned" and "curly braces must be on their own line" are acceptable rules, but "no curse words" is Oppressive Corporate Soullessness.
Doesn't the opposite hold true? That is, assuming the whole word feels the same way about swear words?
While hordes of people peddle that everyone should be using it like gospel.
> After living in a few quite different countries, I have to disagree.
Yeah dude, tell us about all the countries where cursing isn't impolite and unprofessional.
There’s even a comic about how common swearing is in a professional coding environment: https://www.osnews.com/story/19266/wtfsm/
You don't get that kind of widespread usage by mere faddism and preaching. A lot of people had to find it to be genuinely better than the alternatives.
Maybe the unprofessional hackers knew what they were doing after all.
Or as they say in the army: do, lead, or get out of the way.
Think of it akin to us studying cave paintings, wondering what whoever left their handprint on the cave wall was thinking when they did it. So these ancient lines of code might be studied in some future by our descendants, or whatever form we'll take. Interesting to perceive the author's frustration with said bit of code.
By comparison LLM generated code is neat and tidy with clean and clear comments. Plenty of that to go around for the future. No need to suck the soul out of every bit of code we currently have.
lead, follow, or get out of the way
If we have to boil it down to two types, however, I'd split it as "people who think they can do everything themselves and only the code matters" and "people who build effective teams capable of far more than themselves solo", and it's the second group that does the most impressive things. Being professional and respectful is quite beneficial for that group.
Otherwise we wouldn't have the Linux kernel; and I bet the swearing guy behind it got more stuff done and made a bigger difference than the combination of the most effective programmers you have ever met.
Clearly, we do not have the same goals.
Politeness is not the end goal. It is a means to that goal, if and when it enables people to communicate more effectively and with less friction.
I find that expression far more offensive than ‘fuck’ or ‘shit’. Similarly (and non-exhaustively): ‘bad take’; ‘not a good look’; ‘this ain't it’; ‘… not the … you think it is’; ‘…, actually’. They're all personal insults. “This code is crap” is fine; “You're crap” is not.
On the other hand, there's Kratos's “Don't be sorry, be better”, which did hit me hard when I reached that part in God of War 2018. That one hit me on a very personal level.
It's not zero fun, but everyone understands it's a sign the vibes will be up-right, right?
edit: that's not to say you don't want that, but that's what it is
More likely, in a few decades what you consider today to be "respectful discourse" will be seen as extremely offensive and the latest generation of fearful moralistic pearl-clutchers will be hoping that in the near future it's people like you who will be soon be gone. As long as people keep looking for new ways to be offended and continue wanting to police the language of others these kinds of topics will continue.
No.
This condescending tone is what really needs to go away. It reminds me of the 90s right-wing, religious puritanism about swears in music and movies just repurposed for a secular audience.
Even more informative would be to plot the occurance rate within new code.
Key result: Boost occurrence of swearwords by 20%
Key result: Create a new metric that tracks relative swearword use per line YoY
Key result: Attract at least 100 comments on HN or Reddit about the new code
To their point, I would consider "crap" a lesser swear. More "fuck" or "shit" would counter-intuitively imply... certain qualities [by not being so conformist]
I'll never understand this mentality. It's code, not some """self-expressionist""" art project.
There's a kind of "nesting" thing 10x/100x programmers do with code and it tends to manifest this way. The opposite extreme is the 0.1x programmer dequeing agile tickets they don't really understand and issuing broken PRs overworked senior dev "maintainers" LGTM merge. I think everyone exposed to corporate software (on both sides) is really tired of that.
Not that this not-Yankee has much of a need to swear in public to feel Free.
> , but I definitely don't drop swear words into documents that unknown people might see. That's just basic professionalism.
68 instances of "fuck" at the peak in 2005, in how many million lines of code? And turns out 24 of those were in repeated instances of "IOC3 is fucking fucked" in the MIPS driver, so at least some of it is fairly "clustered" too.