Ask HN: Do you swear in your code?
61–70 of 82 posts
Re: Ask HN: Do you swear in your code?
#62Earlier quoted context omitted.
So you have worked in a corporate environment. My mistake. But tell me, when did you ever have to fill out a "comment request form" in triplicate?
Now I can't work out if you're being sarcastic or not.
I've worked in many corporate environments, some where things were perfectly logical and others that aspired to be as good as Dilbert.
But I never had to fill out anything in triplicate. I guess I should have realized the sarcastic flag was up. Sorry.
Re: Ask HN: Do you swear in your code?
#63This is a line from our tag unit tests: @tag.name = "this is a really long tag name that exceeds the maximum length which is set at 65 characters, that should do it! no wait, we changed it to 128 so now it needs to be significantly longer so I guess I'll just throw some more text into here and maybe a gratuitous 'fuck' for the next time someone greps for the f-bomb"
That said, a sloppy file full of f-bombs can be annoying and repetitive, too.
Re: Ask HN: Do you swear in your code?
#64Re: Ask HN: Do you swear in your code?
#65Earlier quoted context omitted.
Now I can't work out if you're being sarcastic or not.
Touche. I've worked in many corporate environments, some where things were perfectly logical and others that aspired to be as good as Dilbert. But I never had to fill out anything in triplicate. I guess I should have realized the sarcastic flag was up. Sorry.
Re: Ask HN: Do you swear in your code?
#66I used to ... until about 8 years ago when I response.write'd a large "FUCK YOU" in an asp app that I forgot to take out. A big honkin' "FUCK YOU" that showed up during QA 5 minutes before client showed up for review. Never again.
Re: Ask HN: Do you swear in your code?
#67For those of you who swear in your code base, I ask you this: is it ok in your company to swear in a meeting? The code you write isn't just for you, it is for everyone on the team, including people you haven't met yet. Is that what you really want to communicate to others?
Re: Ask HN: Do you swear in your code?
#68Just Google "windows source swear words" or something.
Re: Ask HN: Do you swear in your code?
#69Swearing 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.