Repository navigation
Add hangman exercise. - #1758
Conversation
|
There is still the issue of the installation of the FRP library. See this comment in the issue. |
I restarted the build because the error referred to a previous problem and will have a look at the log file. It should be sufficient to add the dependency in build.gradle as you did. EDIT: @Kineolyan Everything seems fine now, build is passing. I will review your PR in the coming week, sorry for the long wait! Thank you again for contributing 😄 |
|
Thanks @lemoncurry . Indeed, I am glad to see it pass. I will also give it a review, from what I learn of previous PRs on that project. |
lemoncurry
left a comment
There was a problem hiding this comment.
Thank you @Kineolyan ! I think this is a very impressive PR. FRP is not very well known, and, to be honest, I cannot truly review how you implemented this exercise. Maybe someone of @exercism/java is more familiar with FRP?
@Kineolyan Maybe you could tell me how you approached this exercise? Were you already familiar with FRP?
|
Hello @lemoncurry I did several small personal projects using various frameworks for FRP. I can guide you in the implementation and the key elements I wanted in my solution. Do you think some of the explanations should be part of the README or something? I will look at the other exercises, to find one that is similarly complex. And I will address your various comments. |
That would be great 👍
Yes, I agree. For this we have the hints.md file which will be integrated by the configlet tool when creating the README.md |
|
Hello @lemoncurry , I have finally some time to write my comments on code. My understanding of FRP is that the code is written using streams, that are list of events, sometimes yet to be generated. And the functional part means we should avoid side effects as much as possible.
In the design, the class Unit tests covers basic cases in the interaction, though it still requires for the trainees to be able to use streams a bit. Finally, one quick note about my implementation: I use a reduce method as an infinite loop dealing with the inputs. It either resets the state for a new game - I saw examples of hints.md. I will write one, as well as update the difficulty and try to find an exercise to unlock. |
|
I normally address all your requests for change. Tell me if you need anything more. |
|
@Kineolyan Thank you for your explanations and commits! I am sorry that I haven't had time yet for a closer look. I hope I will be able for a next review the coming days. Thank you for your patience! |
|
Don't worry @lemoncurry . I am waiting for you to have some time for this 😃 |
|
@lemoncurry - are you still available to do this review? Or should one of the other maintainers take over? |
|
Hello @jmrunkle I am also ready for the review. |
|
It looks like lemoncurry is no longer an active reviewer, so I'll take a look at this in the morning. Thank you for your patience! |
jmrunkle
left a comment
There was a problem hiding this comment.
There are some API things I commented on and some general thoughts about the reference solution (those are more optional).
Thanks again for working on this (it's a really good exercise).
|
Thanks for the review. I'll address the comments and suggestions as soon as possible. |
Co-Authored-By: Jason Runkle <jmrunkle@gmail.com>
Thank you for contributing. Please give me an @ mention when you are ready for another look. |
|
@Kineolyan - are you still working on this PR? |
|
Almost. I forgot about it this week but I shall address your last comment about t the doc and resubmit to your review |
|
Hello @jmrunkle I haven't found time this week but I'll try to find some time this week. As often, it was the hints documentation that was not driving me to work. But thanks to your latest comments, I see clearly how to improve the reference code. And i'll do my best with the doc. |
|
@jmrunkle I have hopefully addressed every of your comments in a way that suits you. The PR is ready for a second review and tests are passing. |
|
@jmrunkle thanks to the new jdk config, I used immutable copies. And I moved to assertj for tests with failures. |
jmrunkle
left a comment
There was a problem hiding this comment.
Looks good enough for me. Thanks for working on this!
| new HashSet<>(), | ||
| new HashSet<>(), | ||
| new ArrayList<>(), |
There was a problem hiding this comment.
These are mutable. Set.of() and List.of() would get you the immutable ones.
Closes: #1745
Reviewer Resources:
Track Policies