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.
I don't have the bandwidth to make this change.
no limit
Bwahahahahahah! I am delighted to have contributed to your suffering grasshopper. ;-)
I removed the first statement as I see it could be confusing.
done
consider how you might set a default value for minor_words
Thanks for the feedback! I updated the instructions to make it clearer that punctuation is included in the test strings.
yes, if the number of rails is randomized the result is different. Now, the number of rails is random and the long lorem string is shuffled for 20 random tests. Hopefully impossible to hack!
I added random test cases for both ruby and javascript. Thanks for the feedback!
so would some of the solutions not pass if there were random test cases?
There is one half-random test case ( the number of rails is randomized, but not the string)
Good catch, this is fixed, thanks!
any one here have experience publishing a kata. I have created my first. It passes all validation. When I try to publish, the page eventually returns a server time out error. Or, the yinyang spinner spins indefinitely. The js browser console returns:
not sure what you are trying to communicate with your comment. I did leave some notes in the details/description. My main intent was to help me grok what was going on with the code by improving its readability and naming.
I would agree this is clever, however not a best practice. I generally try to favor explicit type conversion and avoid the implicit coersion that is provided by the javascript arithmetic operators.
JavaScript engines, when parsing the code will do semi-colon insertion. So while semicolons can be omitted in most cases, the JS engine is still adding them back in before the code is executed. This can really jack up your program if you are not aware of the insertion rules. http://inimino.org/~inimino/blog/javascript_semicolons.
Loading more items...