'and' should not be used in logical comparisions, it should be used only in flow logic, for example in ruby on rails controllers you often see something like:
deffooifbarredirect_to:rootandreturnend# do semething else...end
yes, using 'and' often gives valid results but it's bad practice because the 'and' operation has lower precedence than '&&' and you asking for strange bugs in code
I don't think so. If the language provides the functionality, why not use it? It is a clever way to improve your code throughput and a valid way to teach others a valid example.
!
I didn't know that: thanks for the tip :)
'and' should not be used in logical comparisions, it should be used only in flow logic, for example in ruby on rails controllers you often see something like:
yes, using 'and' often gives valid results but it's bad practice because the 'and' operation has lower precedence than '&&' and you asking for strange bugs in code
I agree to that.
Oh, I see. I get it now.
"As no one knows what Santa will give them, gifts can be anything [...]"
It's suppose to have a bit of black box presence around it.
Nice kata. I think you should go without "The kata tests are the same as the sample fixtures.", though.
I was also going to propose this. Test cases over a million and with length multiples of three.
This is a very nice kata. I enjoyed doing it.
This comment is hidden because it contains spoiler information about the solution
I don't think so. If the language provides the functionality, why not use it? It is a clever way to improve your code throughput and a valid way to teach others a valid example.
Wow, nice function programming Kata!