top | item 11396299

(no title)

mdjt | 10 years ago

if happens: print "shit, that wasn't supposed to happen"

discuss

order

mrspeaker|10 years ago

Never ever EVER put bad language in any unexpected error cases or logs - even as you're developing it... it WILL somehow magically make its way to production, and it WILL appear!

arethuza|10 years ago

Not only will it manifest itself in production, it will do so at the time and with the user most likely to cause great embarrassment.

[NB There is a related phenomena to do with a demo of a system that includes "adult content" (i.e. porn) - the likelihood of a user randomly stumbling upon this content is practically 100%, even if this content is a tiny part of the overall demo].

kagamine|10 years ago

I remind myself frequently not to swear in code as I am quite juvenile on a normal day. If I'm struggling I'll just make up a word, so that if it ever happens that someone else sees it I can say it is an acronym but that I have conveniently forgotten for what.

musgravepeter|10 years ago

My favourite was some Telecom code that returned "Not Kansas", as in "We've not in Kansas anymore".

dingaling|10 years ago

I encountered a variation earlier this week that was more quzzical of itself:

"How did this happen?"