-
Notifications
You must be signed in to change notification settings - Fork 13
Added Comments to Each of the Solutions #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Standardized grammar in DieRoll solution
Fixed a few grammar and spelling mistakes in comments, formatted comments to be in keeping with the rest of the code (line breaks and extra, empty comment lines).
03LoopedGuessingGame/src/solution.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you might want to be clearer here, since it's a little ambiguous whether you're checking the equality or asserting it. What I think you mean is that this line sets the variable num to be equal to the value returned by rollDie(). Just make sure you're explicit. Compare:
// *checks* whether num is equal to the value of rollDie()
num == rollDie();to
// sets num equal to the value of rollDie()
num = rollDie();|
Can you edit your comments so that that do NOT restate implementation details (e.g., "uses parseInt", "sets the variable authorsName", etc), but instead focus on explaining the meaning of the code. In other words, tell me what the code means .... not what it does ... because the code itself tells me what it does. |
Adds a little bit of clarification to comments in 02, 03, 04, and 05.
|
Has there been any progress on this? |
Our group went through an added line comments for each of the solution files to the problems. We thought that this would help people who looked at the solution files understand what was going on through each step, and make the solutions more beneficial for somebody who is having a hard time understanding what is going on.