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

I agree with most of the article, except the yes/no part. In fact I think it's better to do :

"Do you want to do this (Y/n)?"

Where the most common option is uppercase so I can just hit enter.



The important point here is to at least require that <Enter> key, rather than just using getchar() or whatever else and continuing on unexpectedly.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: