Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
That sounds crazy. It took me less than 10 minutes to find a solution, even if it probably wasn't what you had in mind.
Thanks for the Kata anyway, it was refreshing!
Also add Hash into the list of frozen classes.
Set
class is using Hash class under the hood.\x0B does not match with the name length either.
I've changed the example to \x0C\x00Maximilianus, which should be valid, correct and a useful example.
This comment is hidden because it contains spoiler information about the solution
Agree: not sure if they are somehow converted automatically or if it was intentional, but I go other strange characters too to distract me.
Mine's pretty straightforward as well. Reduce takes operators as symbols, which is incredibly useful in this case.
I agree with the duchess. Showing the character as
\\b
is misleading because the character isn't supposed to be interpreted as an ASCII backspace, but as an integer.The most interesting solution. Mine is also not using eval, but quite simple and easy to read. @JoshBrodieNZ your solution is universal, man, you could use it for half of katas with minor changes ;)
This comment is hidden because it contains spoiler information about the solution
The garbled text unpacks to read:
Which I then eval to run and require the built-in Matrix functionality.
I obfuscated this because on the previous jRuby based system, this could be modified to escape the sandbox environment by leveraging the jRuby hooks to reimplement blacklisted functionality like 'require' and 'system'.
Sorry but I got to ask, What are you doing there?
I also hate eval and haven't ever used curry, but I will now!
I try not to do this too often but sometimes I just can't help it!
Ah! Need to be sneakier! :)
ps. I just submitted a less obvious albeit somewhat longer solution.
This was pretty interesting, thanks for the challenge!
That being said, I couldn't personally rank it at 1 kyu. It was quite difficult, but I come from Javascript and have only dealt with Ruby in a few very simple katas. If I hadn't to Google every bit of syntax, I wonder how much easier it'd be.. :P
I find it odd, given Ruby's reputation of insane magic tricks, that a JS background could help so much.
Am I'm just misguided, and they are actually very similar languages?
Loading more items...