more than anything else, i swear at the code.
Ask HN: Do you swear in your code?
71–80 of 82 posts
Re: Ask HN: Do you swear in your code?
#72Comments are for quick explanations of things that aren't obvious. Documentation is for explanation of the obvious. Blogs are for ranting.
Re: Ask HN: Do you swear in your code?
#73The first line of source read
/* CSALDE - Custodio Sum At Lois' Defecatio Est
Is it OK if your s bombs are in Latin?
Re: Ask HN: Do you swear in your code?
#74http://philip.greenspun.com/ancient-history/professionalism-... ...may be of interest. But that said, no, I don't. Furthermore, colleagues who frequently use profanity in their everyday speech strike me as rather disrespectful.
Re: Ask HN: Do you swear in your code?
#75No. Aside from the fact it's unprofessional, it makes you look amateurish if the code ever ends up public. This happened with some YouTube code last year, if I remember correctly, and that is exactly what it made me think.
Re: Ask HN: Do you swear in your code?
#76Earlier quoted context omitted.
True story: During a summer internship years ago, I used Foo and Bar as placeholders throughout a web page comp. My boss sat me down for a serious chat about professionalism. Turns out he had never heard of Foo and Bar. Prior to that conversation, I had never heard of FUBAR.
Yes, that's the source of the symbols. Some people like them, some think they're unprofessional, yada yada. But I've never once had someone try to interpret "foo" as profanity...
Re: Ask HN: Do you swear in your code?
#77However, I don't believe it's appropriate to swear in code, and that any examples would be expected to come back and bite you on the bottom.
Re: Ask HN: Do you swear in your code?
#78Swearing 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.
True story: During a summer internship years ago, I used Foo and Bar as placeholders throughout a web page comp. My boss sat me down for a serious chat about professionalism. Turns out he had never heard of Foo and Bar. Prior to that conversation, I had never heard of FUBAR.
Re: Ask HN: Do you swear in your code?
#79It's OK to do it in C++, if you must. It's very, very stupid to do it in HTML...
Re: Ask HN: Do you swear in your code?
#80Edit: incidentally, profanity in code is not limited to comments. "White Like [name deleted]s Balls" is a variable name I saw once and have not yet had the good fortune to forget. I'll let you guys guess whether this was code distilled to its clearest essence. :)