by VBprogrammer · 12y ago · 0 comments
I've taken that as a warning and never write anything I wouldn't be happy for a customer to see in logs, test-data, comments (although handfuls of sarcasm are still acceptable) or debugging code.
Very good advice!
I once worked with someone who had the unfortunate habit of naming debugging log files "shit".
After a server migration, a couple of paths had been incorrectly set, leading to the client complaining about a now-memorable error: "Cannot open: shit".
Whoops
I'm adopting this error message for I/O from now on.
Naturally that code was left in and went into production, and the customer rings up to complain they'd just printed out a 2000 page manual with "hello fuckers" at the end of every line.
I've never seen a manager look so furious, but we were all paid so little we just laughed.
that summarizes the whole thread.
Same goes for code comments. Unless it's a really, really good joke that won't offend if it happens to show up anywhere, or over your shoulder.