@ColbyDauph is correct about the purpose of the Kata. It is intended to make new Rubyists aware of existing features, which means that this solution is "really solving it". However, I'm not a big fan of Kata being used this way and would much rather have problems which challenged the user to create his or her own solution.
I agree that this isn't really solving it, though it is an acceptable solution. Afterall since he gave you the link, it's not hard to realize that there is a method that will perform the task for you. That being said, you get more out of it as a beginner trying to solve it and knowing that there is a shortcut for it.
I disagree, and will say the same thing I did in response to the comment "That's cheating..." on one of @bellmyer's other "Enumerable Magic" Katas: "Enumerable Magic #2 - True for Any?".
--
The spirit of these simple kata is basic language exploration, the description contains a direct link to documentation on enum#one, and nowhere does it state that the use of enum#one is disallowed (nor is it disabled).
The purpose here is to teach beginners about enum#one, not to force more advanced Rubyists to replicate native functionality.
Also, as @ZozoFouchtra has pointed out: "This is the solution of @bellmyer himself (this Kata's sensei)".
bruhhhhhhhh
Gives the result wanted? It's solved.
Just for showing LINQ usage.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Which language?
This comment is hidden because it contains spoiler information about the solution
@ColbyDauph is correct about the purpose of the Kata. It is intended to make new Rubyists aware of existing features, which means that this solution is "really solving it". However, I'm not a big fan of Kata being used this way and would much rather have problems which challenged the user to create his or her own solution.
I agree that this isn't really solving it, though it is an acceptable solution. Afterall since he gave you the link, it's not hard to realize that there is a method that will perform the task for you. That being said, you get more out of it as a beginner trying to solve it and knowing that there is a shortcut for it.
Hope that now everything is going well!
Fixed. Thanks for the feedback!
I disagree, and will say the same thing I did in response to the comment
"That's cheating..."
on one of @bellmyer's other "Enumerable Magic" Katas: "Enumerable Magic #2 - True for Any?".--
The spirit of these simple kata is basic language exploration, the description contains a direct link to documentation on
enum#one
, and nowhere does it state that the use ofenum#one
is disallowed (nor is it disabled).The purpose here is to teach beginners about
enum#one
, not to force more advanced Rubyists to replicate native functionality.Also, as @ZozoFouchtra has pointed out: "This is the solution of @bellmyer himself (this Kata's sensei)".
I wish I noticed your comment 5 months ago, but I think even then it was too late and the kata was locked from edits.
No.
Loading more items...