Hacker News new | ask | show | jobs
by lllr_finger 2200 days ago
We just renamed our use of whitelist and blacklist for two reasons, outside of any racial contexts.

The easy one is that we don't want to argue about it, much likes tabs vs spaces - the value for us is in having a standard, not necessarily what the standard is.

The other one is that I spend a ton of time convincing developers to be intentional and deliberate in their naming of variables and functions, and these terms just aren't very intentional. I've had to explain them to several ESL developers because it isn't intuitive.

1 comments

Blacklist has been in English for hundreds of years with the current meaning... I guess it would not be obvious to ESL developers but do you avoid other difficult vocabulary? Just curious

Allowlist and denylist are great alternatives except they don't read well as verbs

The verbs would be "allow" and "deny".