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.
added all 3 to JavaScript
@hpr that will only seem to work until it breaks terribly one day. JavaScript is a concurrent, non-blocking language. One script can modify a global variable just before or after another script was reading it. So you enter into all kinds of race condition headaches by sharing state with global variables.
this is a very elegant solution
Non-numeric inputs have been removed from JS version.
Moved reference solution function to the describe block scope, should be ok now
reference solution is fixed
This comment is hidden because it contains spoiler information about the solution
I really don't remember what this was about, but are you referring to this?
Because I think that must have been added to the description after I had written the comment.
This does not confront to standards in 2023 ~!
oh, sorry, I didn't see that part of the description... 'x) (I just completed the kaata again in JS, in "TDD-only" mode). Let's remove that.
I can kinda see how
has
always seems to be used on a base object whilehaving
is used further down an expression chain (although this seems to be a distinction without any meaningful difference).But
with
is brought up in the description without there being any significant difference betweenwith
andhaving
:What makes
with(1).pupil
the correct syntax for that expression vs.having(1).pupil
? As far as I can tell they mean exactly the same thing.I don't see how any of this is an issue.
has
is instance basedwith
having
is... what it is (both instance and "hack" based. Both tested)... The setup of the kata is rather unfortunate, involving a lot of hacks.at most a suggestion, since it's more about adding specs than pointing an actual problem.
closing
beautiful code!
Seems so. But the problem is that test accepts your code now. And numbers are mentioned only in description.
The kata was probably changed to add numbers in addition to alphabetic characters.
Loading more items...