Reply to post: Warning names

Debugging source is even harder when you can't stop laughing at it

GrahamRJ

Warning names

This is in our current code, and frankly I'm quite pleased with it.

Our equipment uses plain-text commands to tell it to move things around and store settings. We needed to be able to erase settings as well though. At the time we had no protection against customers seeing our internal-use-only commands, and we weren't sure that production wouldn't do something silly either.

The erase command is therefore called "stage.calibration.full-erase-of-entire-eeprom-with-no-undo-be-very-sure-before-doing-this".

Our kit has been in production for 9 years now, and so far no-one has unintentionally erased settings. I'd say that's a win.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon