8 kyu
FIXME: Static electrickery
1,656 of 1,655dinglemouse
Loading description...
Debugging
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Thank you for the reminder, it is a very good lesson
Don't forget that the order of initialization matter )))
I have never been through a worse challenge than this! How can I learn Java if no one helps me?
Update to Java 17 JAVA UPDATE
Should the test be passing from the start without editing any of the code?
Worked on it a bit more and see that the test passes but the attempt fails.
"Fix the code so we can all go home early."
It seems I won't be coming home soon :\
I did it faster than I expected.
But I'm not sure I understood what was going on.
I will definitely come back here later.
UPD: I understood what was going on. God, it was so easy :\ I spent a whole hour on it
Phew. You can go home now.
The hardest 8kyu kata I've encountered yet XD
"Do not modify the ONE_HUNDRED declaration" <--- That is incredibly misleading.
OK. And your suggestion is... ?
Should we make
ONE_HUNDRED
final as well?This comment has been hidden.
Well, you are right, this would require making updates.
My point is, if it's a constant it should be unmodifiable - has to have
final
.Otherwise, it's perceived as a Java naming conventions violation and should be named as
oneHundred
.Yes, but too much water under the bridge. Now I don't wish to break 600+ working solutions.
Anyway, I think the variable case indicates the dev intention of usage, not the other way around. For example, Original Sun guidelines uses same UPPERCASE naming convention for things called "Constants" all without final. See section 9 examples. https://www.oracle.com/technetwork/java/codeconventions-150003.pdf
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
Ah, got it! Thanks a bunch.
Approved ;-)
Thanks :-)