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

There's a rule of thumb somewhere that booleans should always be named / represent something positive, so "enabled" instead of "disabled", "visible" instead of "hidden", and "has_been_viewed_much" instead of "has_not_been_viewed_much".

see e.g. https://codehealth.dev/prefer-positive-booleans/



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

Search: