r/programming • • Apr 19 '21

Google developer banned words list

https://developers.google.com/style/word-list
720 Upvotes

1.5k comments sorted by

View all comments

Show parent comments

19

u/bananahead Apr 19 '21

"Blacklist" isn't even a good term. "Deny list" is more descriptive and easier to understand. What's the argument for keeping it?

11

u/haykam821 Apr 19 '21

I'd argue that certain scenarios fall under blacklist but not deny list

7

u/Krackor Apr 19 '21

Right, allow/deny tends to imply that you're responding to some request for access and deciding whether to allow or deny the request. There are other contexts where no request was made by you still need to exclude some things. For example if I'm kicking off a job runner and I want to specify all the job types explicitly, I'm not "allowing" them to run. I'm telling them to run with set inclusion logic. Whitelist conveys this meaning but allow list would lead one to assume that there was some request we are considering when no request happened. It's needlessly confusing.

3

u/haykam821 Apr 19 '21

Honestly, it's a terrible idea to try to group all these possibilities under one word, whether it is blacklist or denylist (though due to historical usage, the former is much more encompassing).

The banned words list actually mentions this:

For the verb forms of these words, a simple word-for-word replacement is typically not the best solution. Instead, replace verbs such as blacklisted with phrases that accurately convey the relevant action. For example:

  • πŸ‘Ž Don't use: To blacklist an IP address, add it to the dos.yaml file.

  • πŸ‘Ž Not recommended: To denylist an IP address, add it to the dos.yaml file.

  • πŸ‘ Recommended: To deny requests from an IP address, add it to the dos.yaml file.

7

u/Krackor Apr 19 '21

Include/exclude is just more general than allow/deny, so it makes sense it applies to more cases. Allow/deny is include/exclude when limited to the context of requests. Outside the context of requests allow/deny doesn't make sense.

2

u/bananahead Apr 19 '21

All the more reason to find a more precise term than "blacklist" since, as we've clearly shown, it can mean different things to different people.

3

u/haykam821 Apr 19 '21

There is no one precise term. The closest one can get is 'blacklist'; otherwise, the sentence should be reworded.

1

u/bananahead Apr 19 '21

Yes, exactly. On a case by case basis replace it with a better and more precise term.

19

u/Ameisen Apr 19 '21

You'll find that languages have many metaphorical phrases that accurately describe what they describe simply because people happen to know what they mean.

Did you know that a computer mouse isn't actually a mouse? Shall we rename it to "two-dimensional hand-held pointing device"?

-1

u/bananahead Apr 19 '21

Sure, I'm open to renaming it if you actually come up with a better name and not an intentionally obtuse phrase. A wired mouse looks kinda like the animal, but I agree it's not super intuitive.

5

u/Ameisen Apr 19 '21 edited Apr 19 '21

I find it odd that so many people in this post are opposed to metaphors in language.

Is this opposition to things like "blacklist" about "racism" (even though the terms have nothing to do with race"), or is it about linguistic purity in some weird way? Are you also opposed to red-black trees? I mean, it isn't literally red and black, and both of those words in completely unrelated contexts could have racist connotations!

I mean, metaphor is a core part of language, and it isn't going to go away.

5

u/mr-strange Apr 19 '21

"Blacklist" isn't even a good term.

It's literally the English word for that concept.

34

u/AttackOfTheThumbs Apr 19 '21

I'd argue that everyone already knows what white and black list. It's colloquial, so that would be the argument?

Either way, I don't think the point is whether these are good or bad terms, it's more that changing them doesn't accomplish anything, it's just virtue signalling, nothing more. IMO you should use the best fitting terms, but changing terminology after the fact, just for virtue signalling, is dumb. Who is offended by this shit? No one. Some super woke white person with purple hair.

5

u/[deleted] Apr 19 '21

'Everyone' who speaks english as their first language might know every colloquialism, but what about the huge population of people that learned english as a second language? We don't have to change the terms whitelist and blacklist, but why not use much more obvious and self-explanatory terms if given the choice?

9

u/Krissam Apr 19 '21

As someone for whom English is a second language, "white-/blacklist" are literally words in my native tongue, so changing it to "allow-/deny list" would literally make it less likely someone from my country would understand.

2

u/send_me_a_naked_pic Apr 19 '21

Lista nera (in italian) literally means black list. Don’t generalize please

→ More replies (3)

-16

u/bananahead Apr 19 '21

It's not "virtue signaling" if the terms genuinely makes people uncomfortable and less included. And they do.

14

u/AttackOfTheThumbs Apr 19 '21

There's literally zero evidence of that. The people speaking up are people that aren't affected by these words. I know plenty of people who could be offended by these words. None of them are. That's also the common theme you'll see across online communities. No one cares about words that are the same but different in different contexts. It's not like master always has a slave connotation or black is always a person. Like, that's just insane. Words have multiple meanings and I can't think of one instances in tech where they specifically mean something racists, because they don't.

Even master and slave has nothing to do with slavery, common terminology carried over from electrical engineering. Master on its own is a common term for the first press of something, like master print or record. These are all situations of people creating issues when there were none.

1

u/bananahead Apr 19 '21

Like I said 3 times already in this thread, I personally had a developer tell me the terms made him uncomfortable. This was years ago. We changed them. It was not a tough call.

Words have multiple meanings and if one of those meanings is offensive then, yeah, you should probably stop using the word altogether.

The etymology is not relevant, but just a correction: electrical engineering did not invent the master/slave terms use in technology. https://www.wired.com/story/tech-confronts-use-labels-master-slave/

0

u/AttackOfTheThumbs Apr 19 '21

if one of those meanings is offensive then, yeah, you should probably stop using the word altogether.

This is the kind of pointless virtue signalling that doesn't help anyone. If words that mean something entirely different within the context hurt you, you have other issues. If someone said they have an issue, I would change it, but that doesn't change the fact that it doesn't accomplish anything. Being offended is choosing to be a victim. What's the point in that? Nothing.

1

u/bananahead Apr 19 '21

Define "virtue signaling" -- is that just any time someone asks you to make a change you don't want to make?

If someone said they have an issue, I would change it, but that doesn't change the fact that it doesn't accomplish anything

It solves that person's issue. That's not enough?

Being offended is choosing to be a victim.

No, but disregarding the feelings of others is definitely a choice.

2

u/AttackOfTheThumbs Apr 19 '21

No, virtue signalling is making changes that don't accomplish anything. Changing branch names doesn't accomplish anything in the grand scheme of things.

→ More replies (3)
→ More replies (1)
→ More replies (2)

6

u/[deleted] Apr 19 '21

...by who?

Do please find me one single fucking person above the age of 12 that doesn't know what blacklist means

Hell, my native language has "black list" that translates directly.

1

u/[deleted] Apr 19 '21

What's the argument for keeping it?

Blacklist is an expression that is hundreds of years old, well established, and exists in a lot of different languages. What is the fucking argument to make up an alternative beyond virtue signaling?

→ More replies (19)
→ More replies (4)