Repository navigation
hello-world: explain UnsupportedOperationException in HINT.md file [Fix #350] - #574
Conversation
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
left a comment
There was a problem hiding this comment.
@FridaTveit nice! I have a few suggestions, but none represent mandatory changes, so feel free to implement/disregard as you see fit :)
| @@ -0,0 +1,4 @@ | |||
| The starter implementation for this exercise uses [UnsupportedOperationException](http://docs.oracle.com/javase/8/docs/api/?java/lang/UnsupportedOperationException.html). | |||
There was a problem hiding this comment.
Is 'starter implementation' terminology that practitioners are familiar with? Maybe 'default' implementation would be easier to understand here if not?
There was a problem hiding this comment.
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."
There was a problem hiding this comment.
Both great suggestions, will change it! :)
| @@ -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. | |||
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Sure, I'll add that and try to see if I can reorder it :)
|
@FridaTveit great tweaks, thanks! LGTM! |
Fixes issue #350.
Reviewer Resources:
Track Policies