Skip to content

parallel-letter-frequency: remove characters with accents / diacritics - #1109

Merged
FridaTveit merged 3 commits into
exercism:masterfrom
sjwarner:plc-illegal-char
Dec 31, 2017
Merged

FridaTveit merged 3 commits into
exercism:masterfrom
sjwarner:plc-illegal-char

Conversation

@sjwarner-bp

Copy link
Copy Markdown
Contributor

Fixes #1104.

I have removed the two Strings called 'OdeAnDieFreude' and Wilhelmus. The test case for appending all three anthems has been removed, and in the comma test case, I have substituted 'StarSpangledBannner'.


Reviewer Resources:

Track Policies

@sjwarner-bp

Copy link
Copy Markdown
Contributor Author

As per discussion on #1104, I'd like to know what others think of this change, and if I have reduced test coverage too much. I think it should be ok, however.

@FridaTveit FridaTveit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great! I don't think it reduces test coverage too much :)

@sjwarner-bp

Copy link
Copy Markdown
Contributor Author

Thanks @FridaTveit, glad you agree 🙂 🎄


Java documentation on [parallel streams](https://docs.oracle.com/javase/tutorial/collections/streams/parallelism.html) may provide some help.

As a stretch goal, consider if your implementation will work for characters with [diacritics or accents](https://en.wikipedia.org/wiki/Diacritic). For example, a good solution should not consider e and ë the same character. An example text for this case is [Wilhelmus](https://en.wikipedia.org/wiki/Wilhelmus), the dutch national anthem.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm a bit wary of using the phrase a good solution here; maybe just such solutions?


Java documentation on [parallel streams](https://docs.oracle.com/javase/tutorial/collections/streams/parallelism.html) may provide some help.

As a stretch goal, consider if your implementation will work for characters with [diacritics or accents](https://en.wikipedia.org/wiki/Diacritic). For example, a good solution should not consider e and ë the same character. An example text for this case is [Wilhelmus](https://en.wikipedia.org/wiki/Wilhelmus), the dutch national anthem.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: dutch -> Dutch.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good spot 🙂

@stkent

stkent commented Dec 27, 2017

Copy link
Copy Markdown
Contributor

Couple minor comments, LGTM otherwise!

@FridaTveit
FridaTveit merged commit 27acf8e into exercism:master Dec 31, 2017
@sjwarner-bp
sjwarner-bp deleted the plc-illegal-char branch December 31, 2017 16:55
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.

4 participants