Closed manumafe98 closed 2 months ago
I've been going through the community solutions and these solutions stood out to me:
Solution | Observations |
---|---|
Link | Hard-coding the number of planet classes (10 ) instead of using the length of the array, could be an actionable comment. |
Link | This solution uses a Java version >= 17, judging by the usage of the RandomGenerator.nextDouble(double) method added in Java 17. However, those Java versions also contain RandomGenerator.nextDouble(double,double) and RandomGenerator.nextInt(int,int) which support passing both a lower and upper bound, which makes the solution a bit easier to read. Could be an informative comment. |
I've been going through the community solutions and these solutions stood out to me:
Solution Observations Link Hard-coding the number of planet classes (
10
) instead of using the length of the array, could be anactionable
comment. Link This solution uses a Java version >= 17, judging by the usage of theRandomGenerator.nextDouble(double)
method added in Java 17. However, those Java versions also containRandomGenerator.nextDouble(double,double)
andRandomGenerator.nextInt(int,int)
which support passing both a lower and upper bound, which makes the solution a bit easier to read. Could be aninformative
comment.
I liked that options, seems that they are more appropriate and can actually help the student!
pull request
closes #2674
Reviewer Resources:
Track Policies