Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Shades of hdparm's --please-destroy-my-drive


Love it! Ceph has --yes-i-really-mean-it for dangerous fs changes, and --yes-i-really-really-mean-it for pool rm. The annoying-to-type property is pretty effective.


This kind of thing is not so unpopular in some kinds of user interfaces. I think GitHub has a repo deletion confirmation that asks you to type the name of the repo. It's not quite the same as flag naming, but it's a big flashing light signalling to you that you're doing something important.


I really like that UX! Even Google dropped the ball there, I accidentally deleted our production gke cluster a handful of years back, through the bloodshot eyes of a forced all-nighter, because their deletion UX was two button clicks (may be different now).


At my company I have repositories that are meant to be open source and repositories that are proprietary. We have an internal tool that ask you to type a sentence the first time you push to open source for confirmation.

But to make sure you actually type it in instead. The sentence you’re instructed to type in is lowercase. But the instructions tell you to type it in as uppercase.


Hyprland has:

  --i-am-really-stupid         - Omits root user privileges check (why would you do that?)


the_private_method_that_has_to_be_public_that_nobody_should_use()


Seen a few “_do_not_use_or_you_will_be_fired()” functions before too.


I applaud that one, too.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: