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.
Using String Format is a good practice of C# thank you for reminding me !
You could either see it as future proofing in case someone decides to increase the array but forget to update the return statement, or see it as over-engineering since "phrases.length" will always be 6.
Either way, cool solution.
This comment is hidden because it contains spoiler information about the solution
I really disliked this kata. I have done it in java without the use of stream.
While the general idea is good, the instructions are scarce and the tests are difficult to read.
It's easy to stagger and get frustrated trying to comply to every test, especially when your langage is not helping you (Java Trim remove newlines, Special characters are annoying ...)
in java this kata is painfull if you don't master streams
This comment is hidden because it contains spoiler information about the solution
I didn't know that Js had lambda, many thanks !
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Well, even if the kata wasn't thought that way, recent solutions seems to disregard stream.
Streams were introduced with Java 8 in Mar 2014. This kata is dated back to Dec 2013.
this is why i used 9! instead of sum
Java : Why no one seem to be using stream ? I excpected the top solution to be a one line stream that would make me feel bad.
Have you heard of "shakespearian coding langage" ^^
Lambda solutions are short, but fall off in term of lisibility
Why using phrases.length since it's always equal 6 ?
However great way of solving the %6=0 problem.
Loading more items...