6 kyu
Chain Evaluation
1,757 of 1,815myTerminal
Loading description...
Fundamentals
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.
Ruby Translation
No random tests.
The description implies there is method chaining going on, but none of that is needed to solve this kata.
Implementing multiple chains and keeping count of the sum would be great next steps for harder version of this kata.
Not related to this kata.
This comment has been hidden.
This kata encourages modifying the prototype of a built-in object, which is very much not a javascript best practice. While I like the concept, I would have preferred that it start with some sort of chain() call which would return a wrapped object that included the 5 methods plus in implementation of valueOf for conversion back to a number.
WTF, well now I know. Do people modify the built-in objects in Production? I guess I will start looking but this wasted a crap load of my time. This Kata is about chaining methods not figuring out what
(0).blah
is or the ramifications of modifying a built-in.I am trying to "Submit Final" but the button does not change despite the answer being correct.
Seems that you managed to submit the code.
Yes, I got a reply that the issue was fixed in my email. It seems the problem was also present on another kata I finished after this one, so I realized it was a website issue. Thanks for checking on this though.
Very nice and straightforward idea. Good job. You could add a note about "Order of Operations". I know for this kata it is ignored, but in case people know about this, they could think this exercise is super hard. Also, you could add some randomly-generated tests, or order the tests randomly to give variety and really stress-test the implementation.
Thanks! I'll try to add more tests.
Agree