-
-
Notifications
You must be signed in to change notification settings - Fork 679
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
Adding analyzer feedback for secrets
concept exercise
#2736
Adding analyzer feedback for secrets
concept exercise
#2736
Conversation
@kahgoh you recently authored this exercise, do you have any suggestions to add or improve? |
I think it looks good. I can't think of anything else to add or improve. |
@kahgoh I don't think you could see the content of the link on the description of the PR, just in case I was referring to this A student solve the exercise like this: public static int clearBits(int value, int mask) {
int and = value & mask;
return and ^ value;
} Instead of the most common solution, that would be like this: public static int clearBits(int value, int mask) {
return value & ~mask ;
} Do you think we should allow it, or remark to use |
@manumafe98 Sorry, I did miss the link in the PR's description. I think that is certainly a valid solution because it is still using bit operators, even though I didn't think of it when I created the exercise. From that perspective, I think if they use |
Great, then I separated the |
pull request
closes #2685
This solution could be a great example to see if we want to ask the operator
~
to be used 100% or be flexible and only ask for the&
oneReviewer Resources:
Track Policies