Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce amount of usage of "dummy" in codebase to minimum #2547

Merged
merged 14 commits into from
Nov 19, 2023
Merged

Conversation

MyreMylar
Copy link
Member

partially fixes #1218 - may be about as good code-side as we can do code side due to relying on external libraries which will struggle to change over things due to public API.

Motivation
See: https://developers.google.com/style/inclusive-documentation for one example, but there are other similar inclusive language style guides.

This guide recommends 'placeholder variable' where we might currently use 'dummy variable'. Pandas had a long back and forth on the topic here. I'm aware not everyone will agree with this but it seems a fairly easy switch to reduce our exposure on this topic.

@MyreMylar MyreMylar marked this pull request as ready for review November 4, 2023 20:39
@MyreMylar MyreMylar requested a review from a team as a code owner November 4, 2023 20:39
@MyreMylar MyreMylar added inclusivity tests tests (module) labels Nov 4, 2023
Copy link
Contributor

@dr0id dr0id left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agreed with your intent after reading the linked documents to avoid the term 'dummy'.

examples/headless_no_windows_needed.py Show resolved Hide resolved
src_py/sprite.py Outdated Show resolved Hide resolved
test/scrap_test.py Show resolved Hide resolved
src_c/constants.c Show resolved Hide resolved
test/test_utils/png.py Outdated Show resolved Hide resolved
test/window_test.py Outdated Show resolved Hide resolved
src_c/_sprite.c Outdated Show resolved Hide resolved
test/window_test.py Outdated Show resolved Hide resolved
test/test_utils/png.py Outdated Show resolved Hide resolved
src_py/sprite.py Outdated Show resolved Hide resolved
Copy link
Contributor

@dr0id dr0id left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe replace those occurrences of 'dummy' here too (search in the docs):

image

@dr0id dr0id self-requested a review November 5, 2023 19:42
@MyreMylar
Copy link
Member Author

maybe replace those occurrences of 'dummy' here too (search in the docs):

I was initially going to save these for another PR, but there were actually only a few (I realised once I deleted the generated documentation). So I've bundled them in as well.

Now the only remaining instances of dummy are all related to the SDL video driver. I suspect SDL will be unable to simply rename this simply as it is a string used all over the place in other people's code.

Other potential ideas:

@MyreMylar MyreMylar merged commit 282ed4d into main Nov 19, 2023
30 checks passed
@MyreMylar MyreMylar deleted the dummy-to-null branch November 19, 2023 14:48
@ankith26 ankith26 added this to the 2.4.0 milestone Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inclusivity tests tests (module)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

use SDL_VIDEODRIVER=null (2377)
4 participants