4 ms·
I'd bet a lot of the non-profanity code is people open sourcing code just to be impressive on resumes or for school, where the profanity code is probably real c
by bawolff 3y ago
I'd bet a lot of the non-profanity code is people open sourcing code just to be impressive on resumes or for school, where the profanity code is probably real code.
Sounds likely to be a classic case of correlation != causation
- MoSattler 3y agoSo, you're saying that my code won't improve simply by sprinkling F-Bombs everywhere?
- bawolff 3y agoCorrect: fork bombs rarely help
- passwordoops 3y agoThere's only one way to find out!
- mikrl 3y agoThe C code so impressive they had to remove it from K&R: if (*some_bullshit >= shit_tolerance){ fucks_given = 0; exit(IM_DONE); }
- HeyLaughingBoy 3y agoWhy bother setting fucks_given if you're exiting? mmm /embeddedme says it could be a memory-mapped peripheral that needs to be reset on exit. But that's a stretch. Why am I even thinking about this?
- zitterbewegung 3y agoI would bet the opposite because I can make a blind assertion.
- bawolff 3y agoYou're beting that people swear in code in order to impress future employers?
- gtirloni 3y agoNo, they are saying your argument is baseless and they can do the same.
- bawolff 3y agoCan they though? Like sure its pretty easy to idly speculate, but instead of doing that they decided to claim the opposite. My claim, well i wouldn't call it baseless since its based on the study protocol in TFA, certainly might be wrong. But the opposite claim is almost surely wrong, to the point of being absurd. Which is the claim they made.
- jghn 3y agoI remember there being a startup in the Dotcom era, I forget the name but for people familiar with Cambridge, MA it was where the IDEO is now. They were notorious for a few things, but one of them was writing open source software with a lot of profanity. I thought this was cool, and was talking excitedly about it to my boss and some of the senior devs. They were less amused. Cut 20 years later and I too am less impressed by this. Not that I think it's *bad* per se, I'm not clutching pearls or anything. But I never find myself thinking what the code really needs are profanities in the comments. Whereas back then I thought it'd be funny/cool and went out of my way to do so when I could. Which wasn't often.
- nomel 3y agoI wonder if swearing can help "free the mind" in some way, with the "rebellion" opening up more, perhaps non-standard/out of the box, "fucking good" ideas?
- eastbound 3y agoor express a wide range of subtlety.
- didntcheck 3y agoYeah. Speaking without profanity always makes me feel a little irritated and constrained. Not because I only know how to speak with profanity and use it as a crutch, but because I use both profane and non-profane words as tools to convey a wider gamut of nuance. So shrinking my lexicon is shrinking my dynamic range
- seadan83 3y agoI hear this, comments generally should not draw attention to themselves. For this, short & terse win. I routinely look to cut any unnecessary words from comments. It was the most painful code review where I asked someone to remove a joke they wrote in the comments. It was a good joke, funny, short, in good taste, I loved it, but.. distracting and unnecessary.
- 3y ago
- rfw300 3y agoI don’t think anyone is saying it’s causation, the correlation is in and of itself interesting!
- bawolff 3y agoI mean i think the article is implying that. However i think the bigger thing is the correlation is misleading due to the sample being the long tail of github projects, which i dont think is representitive of "production" open source projects and certainly not software in general.
- bitofhope 3y agoRorschach test for programmers: give your confident gut feeling explanation for this phenomenon. I'll do mine: there's likely a correlation between needing to maintain a professional conduct which includes forgoing foul language (you're programming at work) and writing code under time pressure where getting a product ready for release is more important than strict adherence to clean programming practice (you're programming at work). Everyone post your favourite conjecture!
- painted-now 3y agoMy gut feeling: when you start to submit swear words in your code, it indicates that you "breathe" the code and know it in and out. The other extreme: if you have no idea what you are doing, you might try to mimic "corp speak" in your code to hide the fact that you actually have no clue. In other words: it needs some confidence in your ability to assess some aspect of the code in order to use swear words.
- dogleash 3y ago> Everyone post your favourite conjecture! Places uptight enough that developers never swear in comments are uptight in other ways that lead to poor team dynamics which hinders quality.
- hinkley 3y agoMaking people jump through hoops because reasons leads to various forms of quiet quitting.
- jerf 3y agoEverything is correlated: https://gwern.net/everything https://gwern.net/everything Take almost any two things like this and you're actually virtually guaranteed to draw out some weak, but quite likely statistically significant, correlation. What lies behind that correlation is probably a entropic mishmash of so many factors that it defies human explanation, and also, defies any attempt to try to "harness" the forces that seem to appear. It could be that all the siblings to the comment are right all at once. I'll cop to just glancing at the graphs, but they don't look out of line for this effect to me intuitively. Also backing this is that more-or-less the same article/thesis could easily have been written for the opposite correlation.
- gweinberg 3y agoNobody suggested causation. The idea that you can improve code quality by adding profane comments is so self-evidently absurd that nobody would even suggest such a thing. Except you kind of just did.