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.
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.
At least I can have a laugh while looking at the hack someone came up with...
When I was in my 20s I would write comments like that, but now what I'm in my 40s I see them as entirely useless, aside from a way for the author to blow off steam. Code that others have to read is not the place for that.
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.
In fact, if I was reviewing a code change with "stupid fucking hack" or "stupid hack" in it, I'd ask the author to remove it and actually explain what was going on. Comments should detail the "why", not the "what". "Stupid hack" is the "what", but I want to know why the hack is necessary.
//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.
I'd much rather a comment that succinctly but thoroughly describes what is going on and why a hack is necessary.
do you know many people who interpret the emotional weight of "that's fucking stupid" versus "that's stupid" as the same?
anecdotally everyone in my worldview would react differently to both, and further reactions will depend largely on how it is said -- not because of some ambiguous meaning collectively (mis)understood.
i have always found people who want to wipe clean the slate of language and all its slang and "offensive" words in favor of established definitions and order -- contextually or otherwise -- often lack a lot of emotional expression in their correspondence.
people emote. physically and verbally. and we have all kinds of mechanics to capture the nuances in contextual languages -- slang is one of the best features, and the nuances can run super deep, nuances a lot of formal writing or correspondence can lose in its rigor and strictness. especially not withstanding cadence and emotion.
youre going to have vastly different experience reading stevenson and then say twain, for example. even speaking it aloud -- but i encourage you to spot a common denominator.
their dialogue often reflects the character, the context, and the emotional state, and largely not formal. and there's a heft amount of literature that utilizes formal writing in its dialogue, and one of the first things lost in the narrative is cohesion, and therefore immersion, bc that's not how most people speak -- only a distinct subset talks like that culturally and even then it is still not totally real life.
humans are very rarely strictly formal in correspondence in practice -- we only established professional dialogue as a norm to separate the haves from the have-nots, and then made it a moral high-ground to keep the "peasants" in line.
express yourselves. say what you mean. stop letting people convince you that you should be scared of saying something like "that's fucking stupid" bc it means more for you to say "that's stupid" for the sake of arbitrary professional standards.
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.
Because you believe the quoted part according to your own admission.
> jumping to that conclusion is a reflection of your own biases, not mine.
Could you kindly clarify what that bias is? I'm too biased to see it apparently, so I'll not know until you put it into words.
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.
And then there's the academics, surgeons, and nuclear physicists who use quite a bit of profanity (especially the surgeons!) and teach their kids that profanity is a linguistic tool that is often super effective.
Accordingly, even IF the willingness and ability to use profanity indicated a lesser linguistic intelligence, one would be mistaken to then assume that a person with that willingness is any less of a capable professional in non-linguistic fields
[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.
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.
Saying that you think Linux is awful without saying why is just... vacuous. It's pointless complaining.
> awful without saying why
Why would I need to elaborate? You expressed that a lot of people hold it in high regard, I expressed I don't. That was exactly the extent I wanted to address it and I think it's a perfectly reasonable stopping point. I don't need to explain myself about my own impressions. To the extent it was relevant, I played along and that's it.
> you cultural colonialist
Well at least you got that part of your insult quota completed for the day. People throw around terms like "colonialist" way too easy these days. One would think if colonialism of any kind, geopolitical or cultural, was so important to you, you wouldn't so casually dispense it. Or is this part of your professionalism too and I'm just being given a taste?
Gotta say, pretty weird though, the Spaniards I work with are normal people who can distinguish just fine when it is appropriate to use foul language (like in informal discussions between colleagues or even to clients) and when it is not appropriate (like in codebases or in formal business communications). Maybe you just work somewhere where the standards are low? I know that a lot of our own small / medium sized companies usually have such poor standards too, frequently accompanied by e.g. using native language identifiers instead of English ones. Product quality usually correlates, though not always and not consistently. Doesn't make me want to call the practice any more professional here, everyone understands that this is subpar lowbrow behavior.
Nice, now with extra patronizing, just the flavor we inferior cultures apparently crave.
> Gotta say, pretty weird though, the Spaniards I work with are normal people who can distinguish just fine...
Ah yes, the Spaniards you work with. Let me guess, you can count them on one hand, right?
> Maybe you just work somewhere where the standards are low?
And there's the second scoop of condescension. Maybe I just work in real places with real Spaniards, not in whatever sanitized fantasy you’ve constructed.
Let’s be clear: I've been working in Spain for nearly 25 years. Cursing is common here. It’s a cultural norm, not some "unprofessional lapse" waiting to be corrected by the wisdom of outside standards. If you'd ever had an honest, open conversation with one of your Spanish coworkers (the kind where people don't filter themselves for fear of offending delicate American sensibilities) you might have figured that out.
Oh no! Sounds like somebody just figured out that insults work both ways!
> Let me guess, you can count them on one hand, right?
If I needed two, would that help? Three? Four? [0] Would it? Really?
> Let’s be clear: I've been working in Spain for nearly 25 years. Cursing is common here.
Let's be extra clear then! That's not what's being discussed!!!
Are you deliberately missing the point somehow? Do you see parentheses and skip right on?
> waiting to be corrected by the wisdom of outside standards
And this is especially not what's being discussed. What's being discussed is if it's waiting to be corrected by the wisdom of inside standards. If people there think they're being unprofessional when using foul language in codebases or formal corporate communications, and if that even happens. An event of mere (albeit severe) disbelief. Although if I were to believe you, an event of "cultural colonialism". Because apparently having an assumption or a negative impression is somehow inherently oppressive (???), and like how do I even dare to think that way? Sensitivities, huh?
Except you keep not talking about that for whatever reason. You keep going off about how people curse all the time. Of course they do. That was never the question! Do you include foul language when sending out advisories or quotes or other formal documents, to clients or internally? Do you include foul language and rants in the work you deliver, be it in commit messages, tickets, ticket comments, release notes, checklists, or code comments? That's what I want you to tell me, with every single one of those amazing, one of a kind, definitely maximally representative of everyone and everywhere else in the country 25 years of experience.
Because supposedly, according to you, all of these will be chock full of cursing!
> the kind where people don't filter themselves for fear of offending delicate American sensibilities
The delicate American sensibilities of a Central-Eastern European. Of not including foul language in code comments and such. Are you actually taking a piss? This is a fever dream, it has to be. You're acting as if I could drive for a few days and enter a foreign planet. You guys are not nearly that special and different, I'm sorry. Maybe except for turrón, no idea how to enjoy that with or without having my dentist on speed dial, I'll admit to that much.
[0] https://knowyourmeme.com/memes/oh-you-love-x-name-every-y
Perhaps the difference you see is that the Spaniards you work with censor themselves because they believe you or others will be offended. But perhaps when it's just those Spaniards together, or when, say, they are working for a Spanish company where everyone else is Spanish, they let loose and are quite vulgar, because that's socially and professional acceptable in those contexts.
I'm not Spanish either. I'm American and am very aware of the polite sensibilities you're talking about in professional settings. But even that can differ. I joined a previous company when it was around 50 people in total, and stayed with that company as it grew to around 10,000. When we were 50 people there was lots of in-person swearing and poor-taste jokes, because we were small enough to know what most/all people would be comfortable with. But as the company grew, that happened less and less, because people could never be sure of the audience for what they were saying. (I had a similar, if less drastic, experience at another company that grew even just from 15 people to 200.)
This phenomenon seems entirely normal, in pretty much any place, though the details of what is and isn't offensive can be different depending on region or culture.
This is not about informal conduct. If they cuss among themselves or towards other colleagues who they are close to, that's completely of no interest to me, and as you say, is just plain normal. I do it with my closer peers as well all the time. This is about the work delivered and the formal communications. And I can understand if this informal speech seeps into work stuff at smaller scales, but that doesn't mean it's right. As you say, it's about everyone being on the same page and cutting themselves slack - but that does mean they are cutting slack, and so that there's a shared understanding of it not being proper, just being okay. According to the GP above though, this is not how it goes in Spain specifically, and it's an alternate reality there where commit histories and code comments will be full of cheap innuendo and cursing, and that that is somehow still completely professional there supposedly.
Well I'll be damned and be the ""cultural colonialist"" then, but I just do not buy that for one second. These standards were not invented yesterday, are not even specific to our industry, and are not nearly geo-localized enough for that to happen.
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?
Or as they say in the army: do, lead, 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.
Linus made an enormous impact, certainly. He'd have had an even bigger impact if he was less of a caustic dick.
And before you say that there's a tradeoff involved and that genius technical people are just that way, look up Berkson's paradox.
I learned long ago that no matter how good they are, it's not worth it.
If you totally ban profanity or vulgarity, all you do is force other words to take up the slack of what people use those words for, and therefore increase ambiguity.
Don't lazily add profanity to the code base because you are a child (ie no, don't use "fuck1" as a variable name FFS) but if there is something truly insane going on, I'm going to write "This is fucking magic" in the code, and my coworkers will know to give that code the respect it deserves.
Consider the fast inverse square root code. Most people only know it because "what the fuck" in a comment. Intensifiers are useful in communication.
https://tvtropes.org/pmwiki/pmwiki.php/Main/PrecisionFStrike
Your code SHOULD have few swears because few situations deserve an intensifier like that, but some situations absolutely call for it.
This is so weird to me. You won't find blueprints (at least not the copies that will be handed around across teams and companies) marked up with "this is fucking magic" when an architect or structural engineer design something amazing. In a DM/email/SMS? Sure, that's the correct place to put that message.
The idea that removing vulgarity will increase ambiguity in this context is very strange. In terms of communication, the only use for vulgarity is to convey emotion. That's not relevant here. If we ban it, maybe people will explain why something is shit, instead of just saying it's shit. Forcing other words to take up the slack is a feature, not a bug.
I know about the fast inverse square root code. I could probably give a decent if somewhat vague overview of how it works from memory. I don't recall the WTF comment, and that certainly isn't why I heard about it.
This is a great example of what I'm saying. Commenting 0x5f3759df "what the fuck?" isn't useful. It tells me the author was confused or amazed or something. Imagine if instead they had commented, "Compute an initial guess by negating and halving the exponent. 0x5f3759df was found by experimenting and seems to give a good guess in the mantissa bits."
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
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.