Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
'date -d' vs. 'date -s', and 'show foo' vs. 'clear foo' (rachelbythebay.com)
4 points by picture on Oct 5, 2021 | hide | past | favorite | 3 comments


Relevant thing I saw a while back: CLI design guidelines[0]

> Confirm before doing anything dangerous. A common convention is to prompt for the user to type y or yes if running interactively, or requiring them to pass -f or --force otherwise.

Lots of other gems there.

[0] https://clig.dev/#arguments-and-flags


Will we start seeing people do "escape form a locked server cage" as a stage stunt at conferences soon? I hope so. "CTF" etc needs more stakes.


A similar and very well known example like 'show' and 'clear' is 'ls -rf /' and 'rm -rf /'.




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

Search: