Ask HN: Do you swear in your code?
11–20 of 82 posts
Re: Ask HN: Do you swear in your code?
#12Re: Ask HN: Do you swear in your code?
#13Re: Ask HN: Do you swear in your code?
#14Re: Ask HN: Do you swear in your code?
#15Fuck yes it is.
Re: Ask HN: Do you swear in your code?
#16Just like the pros: http://www.jwz.org/doc/censorzilla.html
Re: Ask HN: Do you swear in your code?
#17Re: Ask HN: Do you swear in your code?
#18Re: Ask HN: Do you swear in your code?
#19Swearing in comments is unacceptable IMO. You wouldn't write swear words in internal documents, so why do it in code. It's unprofessional and shows a level of dis-respect for your own code and for the people who might end up maintaining it. Plus, heaven forbid a client happened to see it as well.
I'd say it depends. If you're working for bigco, swearing is probably not going to go down well with your boss, or co-workers. If you're working in a startup/open source project/on your own, then swearing can be good and useful IMHO.
If I swear in the comments of some code (Rare), I can instantly see that I've had some issues with that code, or something I'm interfacing to is idiotic and needs fixing etc.
Re: Ask HN: Do you swear in your code?
#20Do I sometimes put dire warnings or florid descriptions of suckage or even rhyming couplets in my code? Yes.
Do I swear in code? No. Swearing is easy and imprecise. If I can't find a more useful way to convey my point, I'm obviously not firing on all cylinders and should take a break.
To be fair, nearly everything I work on is one or both of at least moderately interesting or for a good client. If I were working on something obnoxious for a boss I disliked, maybe I would swear. But even then I'd be more inclined to sarcasm.