DEV Community

Discussion on: ✔||🤢 Commit or Vomit | Easter eggs

Collapse
 
moopet profile image
Ben Sinclair

Whether I would or wouldn't depends entirely on the product and who it's for.
Most of the time, no. But if it was for me or my friends, or if the client wanted it, then maybe.
Easter eggs in code can cause problems down the line. You need to document them carefully - if they're obfuscated in any way then a future developer might break something, or even wonder if the code's been maliciously compromised.

I'm more likely to leave things in help documentation.

Like with :help holy-grail in Vim, or the end of the basic --help in Ack.