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

Increase discoverability of "flip-flop" meaning #920

Merged
merged 1 commit into from
Jul 7, 2023
Merged

Increase discoverability of "flip-flop" meaning #920

merged 1 commit into from
Jul 7, 2023

Conversation

ancientskyscraper
Copy link
Contributor

Some programmers might not be familiar with what a flip-flop is or what it does. Further, it can be tricky (but not impossible) to learn more by searching for "Ruby flip-flop" without being sidetracked into summertime beach footwear options.

Adding the word "operator" helps narrow down internet searches, and providing a link to the relevant Wikipedia page allows readers to easily learn more. At the time of this commit, the Wikipedia page discusses flip-flop operators within Ruby specifically while also giving a good overview of why it is good practice to avoid using them.

When a style guide entry advises against using a particular pattern without explaining what the pattern is, the reader might not be confident that they can successfully follow the guideline. After all, it is difficult to avoid doing something when you don't understand what the "something" is.

Some programmers might not be familiar with what a flip-flop is or what
it does. Further, it can be tricky (but not impossible) to learn more
by searching for "Ruby flip-flop" without being sidetracked into
summertime beach footwear options.

Adding the word "operator" helps narrow down internet searches, and
providing a link to the relevant Wikipedia page allows readers to
easily learn more. At the time of this commit, the Wikipedia page
discusses flip-flop operators within Ruby specifically while also
giving a good overview of why it is good practice to avoid using them.

When a style guide entry advises against using a particular pattern
without explaining what the pattern is, the reader might not be
confident that they can successfully follow the guideline. After all,
it is difficult to avoid doing something when you don't understand what
the "something" is.
@koic koic merged commit 70de46d into rubocop:master Jul 7, 2023
3 checks passed
@koic
Copy link
Member

koic commented Jul 7, 2023

That's make sense. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants