-
-
Notifications
You must be signed in to change notification settings - Fork 558
Review descriptions for initial duplication. #802
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
Conversation
Pull Request exercism#775 prepended a problem's blurb to its description. This resulted in a few descriptions having obvious duplication in the first few lines. This PR reviews all descriptions and: * Removes gratuitous duplication. * Ensures the first line does not exceed 80 characters. * Fixes a few spelling/grammar errors. * Re-arranges a few descriptions for clarity. * Removes a few occurrences of 'write a program' Refs: [PR 775](exercism#775) [Write a program](exercism#321)
exercises/pangram/description.md
Outdated
| "every letter") is a sentence using every letter of the alphabet at least once. | ||
| The best known English pangram is "The quick brown fox jumps over the lazy dog." | ||
| The best known English pangram is "The quick brown fox jumps over the lazy | ||
| dog." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try and avoid line wrapping inside quotes.
| @@ -1,4 +1,5 @@ | |||
| Determine if a number is perfect, abundant, or deficient based on Nicomachus' (60 - 120 CE) classification scheme for natural numbers. | |||
| Determine if a number is perfect, abundant, or deficient based on Nicomachus' | |||
| (60 - 120 CE) classification scheme for natural numbers. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try and keep Nicomachus' dates with his name.
| @@ -1,5 +1,3 @@ | |||
| To try and encourage more sales of different books from a popular 5 book series, a bookshop has decided to offer discounts of multiple-book purchases. | |||
|
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually like the removed text better here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ErikSchierboom I have been following the discussion here and I agree with you on this point but I would like to add that the hyphen should be removed if multiple is left in. I like multiple book better than multi-book. I never really noticed it before till the topic of consolidation came up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced and de-hyphened as suggested.
exercises/diamond/description.md
Outdated
| @@ -1,5 +1,3 @@ | |||
| Given a letter, print a diamond starting with 'A' with the supplied letter at the widest point. | |||
|
|
|||
| ## Diamond kata | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the heading make sense? It is rarely used elsewhere.
exercises/book-store/description.md
Outdated
| they sell of a popular series, a bookshop has decided to | ||
| offer discounts of multi-book purchases. | ||
| To try and encourage more sales of different books from a popular 5 book | ||
| series, a bookshop has decided to offer discounts of multiple book purchases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be "on multiple book purchases"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
|
I think ‘on’ rolls off the tongue better.
|
|
Barring any huge mistakes we've not found, this is ready to be squashed and merged now. |
exercises/octal/description.md
Outdated
| @@ -1,4 +1,6 @@ | |||
| Convert a octal number, represented as a string (e.g. '1735263'), to its decimal equivalent using first principles (i.e. no, you may not use built-in or external libraries to accomplish the conversion). | |||
| Convert a octal number, represented as a string (e.g. '1735263'), to its | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Convert a octal number
should probably read
Convert an octal number
(This exercise is deprecated but likely still served by some tracks, so I figure the change is worth making?)
| @@ -1,4 +1,5 @@ | |||
| Given a number, find the sum of all the multiples of particular numbers up to but not including that number. | |||
| Given a number, find the sum of all the multiples of particular numbers up to | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is almost identically repeated at the end of the description. "particular numbers" also seems to be confusing language here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good point but I'm not going to change this as part of this PR as it is not related to the initial duplication.
| @@ -1,4 +1,4 @@ | |||
| Simulate a bank account supporting opening/closing, withdraws, and deposits of money. Watch out for concurrent transactions! | |||
| Simulate a bank account supporting opening/closing, withdrawals, and deposits of money. Watch out for concurrent transactions! | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs formatting for width.
| @@ -1,4 +1,4 @@ | |||
| Take a nested list and return a single list with all values except nil/null. | |||
| Take a nested list and return a single flattened list with all values except nil/null. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs formatting for width?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but not initial duplication related.
| 10000 = Reverse the order of the operations in the secret handshake. | ||
| ``` | ||
|
|
||
| Given a decimal number, convert it to the appropriate sequence of events for a secret handshake. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs formatting for width.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but not initial duplication related.
| In general, all characters from the input should also be present in the transposed output. | ||
| That means that if a column in the input text contains only spaces on its bottom-most row(s), | ||
| the corresponding output row should contain the spaces in its right-most column(s). | ||
| the corresponding output row should contain the spaces in its right-most column(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs formatting for width.
| - filling one bucket and doing nothing to the other | ||
|
|
||
| Written with <3 at [Fullstack Academy](http://www.fullstackacademy.com/) by [Lindsay](http://lindsaylevine.com). | ||
| Written with <3 at [Fullstack Academy](http://www.fullstackacademy.com/) by [Lindsay](http://lindsaylevine.com). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs formatting for width.
| UAA, UAG, UGA | STOP | ||
|
|
||
|
|
||
| Learn more about [protein translation on Wikipedia](http://en.wikipedia.org/wiki/Translation_(biology)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs formatting for width.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rendered view has no width issues?
|
@Insti reviewed as requested! |
exercises/pangram/description.md
Outdated
| "every letter") is a sentence using every letter of the alphabet at least once. | ||
| The best known English pangram is "The quick brown fox jumps over the lazy dog." | ||
| The best known English pangram is: | ||
| "The quick brown fox jumps over the lazy dog." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use markdown quote syntax here: >?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea.
|
Thanks @stkent Does somebody want to approve these changes so I can squash/merge them? |
|
@Insti looks good to me! |
|
Thanks @ErikSchierboom, @rpottsoh & @stkent I think this completes the separation of blurbs and descriptions. Any further changes to required to the content of the descriptions can be done as needed. |
Pull Request #775 prepended a problem's blurb to its description. This resulted in a few descriptions having obvious duplication in the first few lines.
This PR reviews all descriptions and:
Thanks to @ErikSchierboom for pointing many of these out.
Dependency:
Refs:
PR #775
Write a program