Always, always use plain, non-offensive vanilla boilerplate text in everything you do.
Always, always use plain, non-offensive vanilla boilerplate text in everything you do.
Then the very important finance guy and the very important communication lady from whatever big important investor came unexpectedly and demanded the mother of all demos RIGHT NOW.
Boys, I know what it's to be embarrassed to death and to wish being an earthworm. Preferably deep underground. Like in New-Zealand.
In fact there was quite a lot of harmless material too, however I really hoped that they wouldn't ask for a keyword that would bring forbidden pictures, or worse, ask to use the mouse themselves! I think we managed to avoid any incident this time; however a little later the boss discovered what was in there and he wasn't happy.
I resisted and uploaded the test image again. Later that day, I was called and informed that a recent change to one of the server components was mixing up sessions and the client was seeing the test image instead of the image they expected. Needless to say, I was grateful for the restraint earlier that day. I probably would have been fired if the client had seen what I had almost put up instead of the test image.
I have also accidentally overwritten a whole column in a development database with a comment about skateboards. This was obviously not a big deal since it was a dev db, but it's just more reinforcement that as boring as it gets to write completely innocuous, repetitive stuff in fields while testing, it is much better than letting something slip through in frustration and getting fired and/or losing customers over it.
Like hard drive failure and other inevitabilities, it's not a question of if your dummy data will eventually be exposed to people not meant to see it, but when.
Fake data, like John Doe, San Francisco, CA, doesn't share these problems.
Also of course example.com. Not sure if there are non routeable physical addresses.
Santa Claus, North Pole, Snow Street 1
Sherlock Holmes, London, 221B Baker Street (is a small museum afaik)
I'm a fan of "Bilbo Baggins, 1 Bagshot Row, Bag End", personally.
That address does not exist, but any mail addressed to it is redirected to the Museum, which is technically 239 Baker Street (since it sits between 237 and 241).
They do have a special dispensation from the City of Westminster to display their address as 221b Baker Street though.
http://www.fakenamegenerator.com/index.php
They even have an API to automatically fetch a bunch of data.
When I was young, I sometimes couldn't resist the urge to put strong wording in comments, like:
// This sucks, use a better data structure for it!
Invariably, when I revisited the code months or years later, I thought by myself: Why swearing? You can also express disagreement in a more neutral way.So, nowadays I use a better commenting style for bad code and tech debts, always with a motivation along it:
// TODO: This datastructure is probably inadquate
// here because of O(N^2) lookupExample 1: //FIXME: This code is shit, someone make it better.
Example 2: //FIXME: This code is a truly atrocious hack to work around $issue. I don't know of a better way, but suggestions welcome.
//FIXME: This code is a shitty hack to work around $issue. I don't know of a better way, but suggestions welcome.
This contains the same information but uses a swearword. I think that every would agree that clearer comments are better, but does the presence of obscenities inhibit clarity or are they merely offensive and superfluous?That entirely depends on your work environment. Will adding in obscenities will rouse up some big HR kerfuffle? Then don't do it, you're just wasting everyone's time. Otherwise, do whatever you want.
# This comment included for the benefit of those grepping for swear words: shit.
I don't think I'd do it today, but I was young and it was for a place that had demotivational posters hanging in their lobby.I think it was a good reminder.
After I left, people stopped using it. They decided that strings like "jounce-visit", "crotch-surges", and "rubble-rump" (all real examples from a single run of it just now) were just a little too memorable, to the point of distracting one's mind from the code during development.
for more or less the same reason, some mail system (maybe Andrew?) used to generate Message-IDs without using vowels, and Google Chrome generates extension IDs using random strings from only the first half of the alphabet.
I've switched to animals. Yeah, it's a bit ridiculous coming from some giant leaps in profanity and the implied sexual/violent imagery. But, animals are funny, cute, and have a very large base of context to work with.
I can shove a panda image as a test anywhere, and if I screw up, hey, it's not so bad, it's a cute panda. Some people will ping you if you screw up, no matter how small; that can't be helped. But there's a large range of screw-ups that are recoverable, and a cute panda/kitten/monkey image really helps.
I think it comes down to coders being much more able to traverse levels of abstraction quickly. For us, "Asscock Asscocksson" is just tag for <loremipsum>, whereas non-coders may get tripped up on that and not be able to just skip past it.