Skip to content

Affine markdown style guide applied #1911

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

Merged
merged 2 commits into from
Jan 11, 2022
Merged

Conversation

kotp
Copy link
Member

@kotp kotp commented Jan 8, 2022

Markdown guidelines applied

  • Affine description: One sentence per line
  • Reference style links for Affine

@kotp kotp added documentation x:knowledge/none No existing Exercism knowledge required x:size/tiny Tiny amount of work x:status/claimed Someone is working on this issue x:type/content Work on content (e.g. exercises, concepts) x:type/docs Work on Documentation labels Jan 8, 2022
@kotp kotp self-assigned this Jan 8, 2022
because it has many more keys.
The affine cipher is a type of monoalphabetic substitution cipher.
Each character is mapped to its numeric equivalent, encrypted with a mathematical function and then converted to the letter relating to its new numeric value.
Although all monoalphabetic ciphers are weak, the affine cipher is much stronger than the atbash cipher, because it has many more keys.
Copy link
Member

Choose a reason for hiding this comment

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

is this PR the place to discuss potential changes to the text, or does that go elsewhere because this PR was only meant to change formatting?

In particular, I'd like to call attention to the word "it" - someone reading it might ask "which of the two ciphers is being referred to by 'it' here?"

and therefore, I have one of two suggestions.

Suggested change
Although all monoalphabetic ciphers are weak, the affine cipher is much stronger than the atbash cipher, because it has many more keys.
Although all monoalphabetic ciphers are weak, the affine cipher is much stronger than the atbash cipher, because the former has many more keys.
Suggested change
Although all monoalphabetic ciphers are weak, the affine cipher is much stronger than the atbash cipher, because it has many more keys.
Although all monoalphabetic ciphers are weak, the affine cipher is much stronger than the atbash cipher, because the former has many more keys than the latter.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it is common for native speakers to infer properly, while perhaps English as a second and third language may miss it a bit.

But yeah, not quite right PR for this, but if I did this, it would be a different commit, so that if necessary it could be reverted without taking the formatting away. (So it would not be squashed, only rebased.) But I can not necessarily control how people merge this in, so I would almost prefer a different PR.

Copy link
Member Author

@kotp kotp Jan 8, 2022

Choose a reason for hiding this comment

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

I think making a different PR might also bring about a "policy" to tend to more clearly tend to pronouns across the exercises?

- where `y` is the numeric value of an encrypted letter, ie. `y = E(x)`
- it is important to note that `a^-1` is the modular multiplicative inverse (MMI)
of `a mod m`
Where:
Copy link
Member

Choose a reason for hiding this comment

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

I was initially uncertain that the "Where" should be lifted out of the list, because only the term y is being defined anew, and the other things are just additional notes, but after thinking about it I see that it does make sense if each individual item is prefixed with the word "Where", so that seems fine. Even though the only term being defined is y, the operation a^-1 is being defined as well.

Each character is mapped to its numeric equivalent, encrypted with a mathematical function and then converted to the letter relating to its new numeric value.
Although all monoalphabetic ciphers are weak, the affine cipher is much stronger than the atbash cipher, because it has many more keys.

[comment]: # ( monoalphabetic as spelled by Merriam-Webster, compare to polyalphabetic )
Copy link
Member

Choose a reason for hiding this comment

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

I wouldn't have required that this comment be preserved in the file, but I'm fine either way.

Copy link
Member Author

Choose a reason for hiding this comment

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

I added this in the file, because it is not the first time this word has been modified. Having the comment in the file hopefully gives the reasoning as to why it is the way it is. (when changing the spelling again, it is more likely this reference will be seen.)

@kotp kotp merged commit 11b5197 into main Jan 11, 2022
@kotp kotp deleted the Affine_markdown_style_guide_applied branch January 11, 2022 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation x:knowledge/none No existing Exercism knowledge required x:size/tiny Tiny amount of work x:status/claimed Someone is working on this issue x:type/content Work on content (e.g. exercises, concepts) x:type/docs Work on Documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants