Skip to content

hello-world: explain UnsupportedOperationException in HINT.md file [Fix #350] - #574

Merged
stkent merged 3 commits into
exercism:masterfrom
FridaTveit:AddHintFileToRnaTranscription
May 20, 2017
Merged

stkent merged 3 commits into
exercism:masterfrom
FridaTveit:AddHintFileToRnaTranscription

Conversation

@FridaTveit

Copy link
Copy Markdown
Contributor

Fixes issue #350.


Reviewer Resources:

Track Policies

This hint file should be added to this exercise as it is the first one
which uses UnsupportedOperationException. The file has been moved from
rna-transcription as that exercise comes later in the track.

@stkent stkent 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.

@FridaTveit nice! I have a few suggestions, but none represent mandatory changes, so feel free to implement/disregard as you see fit :)

Comment thread exercises/hello-world/HINT.md Outdated
@@ -0,0 +1,4 @@
The starter implementation for this exercise uses [UnsupportedOperationException](http://docs.oracle.com/javase/8/docs/api/?java/lang/UnsupportedOperationException.html).

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.

Is 'starter implementation' terminology that practitioners are familiar with? Maybe 'default' implementation would be easier to understand here if not?

@stkent stkent May 18, 2017 •

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.

Maybe we can add a little tidbit here on UnsupportedOperationException specifically, since any exception would cause a test failure with a given message. Perhaps something like "This particular exception type is commonly thrown to alert developers that a method has not yet been implemented."

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.

Both great suggestions, will change it! :)

Comment thread exercises/hello-world/HINT.md Outdated
@@ -0,0 +1,4 @@
The starter implementation for this exercise uses [UnsupportedOperationException](http://docs.oracle.com/javase/8/docs/api/?java/lang/UnsupportedOperationException.html).
This [exception](https://docs.oracle.com/javase/tutorial/essential/exceptions/) will cause the test to fail with the provided error message.

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'd go a little further and explain why we do this: "Throwing exceptions in this manner means the tests will compile but not pass right away." or similar?

Separate point: it seems a little back-to-front to be linking out the the general Exceptions docs after linking to the Javadoc for a specific implementation; is there a way to reorder this hint to avoid that?

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.

Sure, I'll add that and try to see if I can reorder it :)

@FridaTveit FridaTveit changed the title rna-transcription: explain UnsupportedOperationException in HINT.md file [Fix #350] hello-world: explain UnsupportedOperationException in HINT.md file [Fix #350] May 20, 2017
@stkent

stkent commented May 20, 2017

Copy link
Copy Markdown
Contributor

@FridaTveit great tweaks, thanks! LGTM! :shipit:

@stkent
stkent merged commit 3e55b7d into exercism:master May 20, 2017
@FridaTveit
FridaTveit deleted the AddHintFileToRnaTranscription branch October 17, 2017 16:51
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.

2 participants