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.
Very satisfying kata!
You’re not wrong.
What the task description does say, however, is that input strings are actual quotes from Jaden Smith, minus the capitalization. One could argue that those quotes – a finite set of known strings – don’t include chains of two or more consecutive spaces. The test cases seem to confirm that assumption.
If the original message contains several spaces in a line, this code will remove them. Thus, the code does not replace each initial letter of the word with a capital one, but also changes the length of the line, which is not part of the task
Kind of stuck here. I've been trying to solve it, but I can't figure out what's the security hole in
check_credentials!
another hint?Excellent kata. Filled in knowledge gaps.
Bars in the window
JSON
to the list of frozen modules. With the redefining ofJSON.load
credentials
object becomes totally under control, and then it's easy way to all tests pass.You’re welcome @wkirschbaum, glad to hear you’ve learned a few things on your way!
This was a rough one... hated it until I got it right, but learned some stuff on the way. thanks @duchess_of_objects
Ruby is so good! =)
The
crypt_password!
method manipulatesgiven.password
, replacing its content with the return value ofString#crypt
.So by the time the comparison happens,
given.password
will already contain the cryptographic hash.This comment is hidden because it contains spoiler information about the solution
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!
This is simple and elegant and does what it says on the tin. A+.
Oh...ok. LOL
Loading more items...