Hacker News new | ask | show | jobs
by moron4hire 4674 days ago
I love cursing more than most people, but it doesn't belong in my code.
2 comments

I agree. I love cursing, but I think it works best in more ephemeral situations. In conversation (spoken, written, or otherwise) it works great but in official records that will be often revisited (whether they are source code comments or commit messages) the cursing will eventually come off as tacky as the emotional context that warranted it is lost in time.

If I am browsing through source from 10 years ago, it may help me if a comment alerts me that "this fucking cockstain of a function broke prod", but really there is no connect between me and the emotion that warranted the profanity. I need more context, otherwise it seems tacky.

(I think that recorded conversation, although not ephemeral, retains the emotional context necessary for profanity to 'work')

that is exactly right
it would also get one in trouble at many companies. Anyone's that's ever been through an acquisition will know that due diligence includes code scans - it's highly unprofessional to let cursing into a code base.