Skip to content

Conversation

@Insti
Copy link
Contributor

@Insti Insti commented May 23, 2017

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:

  • 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'

Thanks to @ErikSchierboom for pointing many of these out.

Dependency:

Refs:
PR #775
Write a program

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)
"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."
Copy link
Contributor Author

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.
Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Member

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.

Copy link
Contributor Author

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.

@@ -1,5 +1,3 @@
Given a letter, print a diamond starting with 'A' with the supplied letter at the widest point.

## Diamond kata
Copy link
Member

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.

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.
Copy link
Contributor Author

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"?

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

@rpottsoh
Copy link
Member

rpottsoh commented May 24, 2017 via email

@Insti
Copy link
Contributor Author

Insti commented May 24, 2017

Barring any huge mistakes we've not found, this is ready to be squashed and merged now.
Further tweaking of descriptions can happen in separate specific PRs.

@@ -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
Copy link
Contributor

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
Copy link
Contributor

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.

Copy link
Contributor Author

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!
Copy link
Contributor

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.
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs formatting for width?

Copy link
Contributor Author

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.
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs formatting for width.

Copy link
Contributor Author

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).
Copy link
Contributor

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).
Copy link
Contributor

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))
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs formatting for width.

Copy link
Contributor Author

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?

@stkent
Copy link
Contributor

stkent commented May 29, 2017

@Insti reviewed as requested!

"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."
Copy link
Contributor

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: >?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea.

@Insti
Copy link
Contributor Author

Insti commented May 29, 2017

Thanks @stkent

Does somebody want to approve these changes so I can squash/merge them?

@ErikSchierboom
Copy link
Member

@Insti looks good to me!

@Insti Insti merged commit 73ebd13 into exercism:master May 29, 2017
@Insti Insti deleted the Review_descriptions branch May 29, 2017 18:49
@Insti
Copy link
Contributor Author

Insti commented May 29, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants