An initiative to make codebase racially neutral #4047

Closed
owocado wants to merge 1 commit from racially-neutral-codebase into V3/develop
owocado commented 2020-07-07 15:18:58 +02:00 (Migrated from github.com)

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

Through this PR, I'm putting forth and proposing the idea/belief to make the codebase of Red-DiscordBot project (as much) racially neutral (as possible), also less commonly known as the idea of inclusive terminology.

Terms such as “blacklist” and “whitelist” generally reinforce the notion that black==bad and white==good.

I personally believe that any code should be racially neutral. These terms such as "whitelist" and "blacklist" can usually be replaced by “denylist” and “allowlist” without changing their meanings, but particular instances may need other replacements.

Many popular open-source projects have proposed to implement similar initiatives, including MySQL, Twitter, Chromium Project and GitHub (twitter post by GitHub CEO). Similar idea is even proposed to Linux Kernel. I believe it is a good time if we can also implement the similar initiative for this project.

While there are advantages to this idea, there are cons as well, one I could think of is that replacing commonly used terms with less well-known synonyms could itself be a challenge for non-English users. But I strongly believe the pros greatly outweigh the cons.
I agree finding consensus on such matters is not easy, but if adopted, the Red-DiscordBot will be one of many projects where inclusive code is encouraged.

To quote an excerpt from The Chromium Project's Code of Conduct:

Each of us has the right to enjoy our experience and participate without fear of discrimination, or condescension, whether blatant or subtle.

To add emphasis to above: exclusive code is discriminatory and condescending, and reading biased code isn't enjoyable. Words matter in our meetings, our conversations, and the documents we write.

While I am already expecting some amount of possible backlash and ridicule reactions towards this PR, I don't mind if this PR gets turned down by the majority, but it opens up the discussion/conversation to let everyone know what is the stance or viewpoint of the members and contributors of this project on this topic. I politely urge everyone to comment your opinion in this thread. All constructive critisisms are wholeheartedly welcome.
While I can agree this PR is poorly made, but I humbly request you to focus more on the idea/belief I'm trying to propose through this PR. This is but a template PR. Hope everyone will take it positively.

### Type - [ ] Bugfix - [ ] Enhancement - [ ] New feature ### Description of the changes Through this PR, I'm putting forth and proposing the idea/belief to make the codebase of Red-DiscordBot project (as much) racially neutral (as possible), also less commonly known as the idea of inclusive terminology. **Terms such as “blacklist” and “whitelist” generally reinforce the notion that black==bad and white==good.** I personally believe that any code should be racially neutral. These terms such as "whitelist" and "blacklist" can usually be replaced by “denylist” and “allowlist” without changing their meanings, but particular instances may need other replacements. Many popular open-source projects have proposed to implement similar initiatives, including [MySQL](https://mysqlhighavailability.com/mysql-terminology-updates/), [Twitter](https://twitter.com/TwitterEng/status/1278733305190342656), [Chromium Project](https://chromium.googlesource.com/chromium/src/+/master/styleguide/inclusive_code.md) and [GitHub](https://twitter.com/natfriedman/status/1271253144442253312) (twitter post by GitHub CEO). Similar idea is even proposed to [Linux Kernel](https://lkml.org/lkml/2020/7/4/229). I believe it is a good time if we can also implement the similar initiative for this project. While there are advantages to this idea, there are cons as well, one I could think of is that replacing commonly used terms with less well-known synonyms could itself be a challenge for non-English users. But **I strongly believe the pros greatly outweigh the cons.** I agree finding consensus on such matters is not easy, but if adopted, the Red-DiscordBot will be one of many projects where inclusive code is encouraged. To quote an excerpt from The Chromium Project's [Code of Conduct](https://www.chromium.org/conduct): > Each of us has the right to enjoy our experience and participate without fear of discrimination, or condescension, whether blatant or subtle. To add emphasis to above: exclusive code is discriminatory and condescending, and reading biased code isn't enjoyable. **Words matter in our meetings, our conversations, and the documents we write.** While I am already expecting some amount of possible backlash and ridicule reactions towards this PR, I don't mind if this PR gets turned down by the majority, but it opens up the discussion/conversation to let everyone know what is the stance or viewpoint of the members and contributors of this project on this topic. I politely urge everyone to comment your opinion in this thread. All constructive critisisms are wholeheartedly welcome. While I can agree this PR is poorly made, but I humbly request you to focus more on the idea/belief I'm trying to propose through this PR. This is but a template PR. Hope everyone will take it positively.
tekulvw (Migrated from github.com) reviewed 2020-07-07 15:18:58 +02:00
aikaterna (Migrated from github.com) reviewed 2020-07-07 15:18:58 +02:00
Drapersniper (Migrated from github.com) reviewed 2020-07-07 15:18:58 +02:00
Vexed01 commented 2020-07-07 15:43:43 +02:00 (Migrated from github.com)

I am mostly in support of this, I have seen the "allowlist" and "denylist" idea floating around recently.
As you have said this is going to be a big change.

I think that for commands white/backlist should be a build-in alias so it still works (possibly for removal around 3.5), and this would mean allow/denylist is shown in help to gently nudge users but white/blacklist would still work so it's not too sudden.

Also owo, ideally something like thing this would be in an issue first to better facilitate discussion, then if/when approved moved to a PR 😛

I am mostly in support of this, I have seen the "allowlist" and "denylist" idea floating around recently. As you have said this is going to be a big change. I think that for commands white/backlist should be a build-in alias so it still works (possibly for removal around 3.5), and this would mean allow/denylist is shown in help to gently nudge users but white/blacklist would still work so it's not too sudden. Also owo, ideally something like thing this would be in an issue first to better facilitate discussion, then if/when approved moved to a PR :stuck_out_tongue:
Jackenmen commented 2020-07-07 16:14:42 +02:00 (Migrated from github.com)

Ignoring the reasoning behind this idea for now, this PR just blindly replaces all usage of "whitelist" and "blacklist" without any additional handling. If this were to be done, this either needs a config migration or it needs to keep the old names in the backend.

Ignoring the reasoning behind this idea for now, this PR just blindly replaces all usage of "whitelist" and "blacklist" without any additional handling. If this were to be done, this either needs a config migration or it needs to keep the old names in the backend.
Drapersniper commented 2020-07-07 16:19:51 +02:00 (Migrated from github.com)

+1 in favour of this PR.

However theres a couple of things to note here.

  1. This should not be done as one bulk PR. Each cog/core should be done as its individual PR for easier review regression catches
  2. Data magration needs to be done.
  3. Without looking in depth some of config defaults may need to remain inplace for migration purposes.

I suggest we Close this PR and track the progress is a informational Issue where we can monitor PRs for specific areas.

+1 in favour of this PR. However theres a couple of things to note here. 1. This should not be done as one bulk PR. Each cog/core should be done as its individual PR for easier review regression catches 2. Data magration needs to be done. 3. Without looking in depth some of config defaults may need to remain inplace for migration purposes. I suggest we Close this PR and track the progress is a informational Issue where we can monitor PRs for specific areas.
Twentysix26 commented 2020-07-07 16:40:14 +02:00 (Migrated from github.com)

to make the codebase of Red-DiscordBot project (as much) racially neutral (as possible), also less commonly known as the idea of inclusive terminology.

Terms such as “blacklist” and “whitelist” generally reinforce the notion that black==bad and white==good.

-1

Those words have nothing to do with race, nor are they used in a racist context. Changing them means replacing terms that are standard in this industry, which results in no benefit other than confusing users for no reason.

> to make the codebase of Red-DiscordBot project (as much) racially neutral (as possible), also less commonly known as the idea of inclusive terminology. > Terms such as “blacklist” and “whitelist” generally reinforce the notion that black==bad and white==good. -1 Those words [have nothing to do with race](https://en.wikipedia.org/wiki/Blacklisting#Origins_of_the_term), nor are they used in a racist context. Changing them means replacing terms that are standard in this industry, which results in no benefit other than confusing users for no reason.
owocado commented 2020-07-07 17:42:32 +02:00 (Migrated from github.com)

+1 in favour of this PR.

However theres a couple of things to note here.

  1. This should not be done as one bulk PR. Each cog/core should be done as its individual PR for easier review regression catches
  2. Data magration needs to be done.
  3. Without looking in depth some of config defaults may need to remain inplace for migration purposes.

I suggest we Close this PR and track the progress is a informational Issue where we can monitor PRs for specific areas.

That sounds a better proposal than mine.
I apologize for any inconvenience I may have caused to anyone. Please feel free to close this PR or take any action you would think would be right in context.

> +1 in favour of this PR. > > However theres a couple of things to note here. > > 1. This should not be done as one bulk PR. Each cog/core should be done as its individual PR for easier review regression catches > 2. Data magration needs to be done. > 3. Without looking in depth some of config defaults may need to remain inplace for migration purposes. > > I suggest we Close this PR and track the progress is a informational Issue where we can monitor PRs for specific areas. That sounds a better proposal than mine. I apologize for any inconvenience I may have caused to anyone. Please feel free to close this PR or take any action you would think would be right in context.
Flame442 commented 2020-07-07 18:34:32 +02:00 (Migrated from github.com)

-1 not only for the reasons 26 has pointed out, but also because it would also cause issues for users who are used to the current commands and language. I would be perfectly fine adding aliases to commands, but changing every instance of the language is just not something I agree with personally.

-1 not only for the reasons 26 has pointed out, but also because it would also cause issues for users who are used to the current commands and language. I would be perfectly fine adding aliases to commands, but changing every instance of the language is just not something I agree with personally.
Drapersniper commented 2020-07-07 19:00:21 +02:00 (Migrated from github.com)

Closing this in favour of #4048.

Closing this in favour of #4048.

Pull request closed

Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!4047
No description provided.