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.
Instructions are unclear and vague:
"magic_ - a special property as it should be able to handle numbers given with it" should write "magic_ - special instance
and its property is being able to handle numbers given with it"and since it has and underline its not a public but private instance.
"whereami" is also instance and "whoami" is also instance.
How does inserting multiple callbacks with different
n
s work? Depending on the meaning ofn
it can mean one of these things:n
is the priority of the callback; callbacks are order byn
, then register order. This means usingcallback(1)
after manycallback(0)
will not affect the ones registered withcallback(0)
n
is the order of the callback stack at the moment; callbacks are treated as a list that can be inserted anywhere. This means usingcallback(1)
after manycallback(0)
will push all registeredcallback(0)
callbacks except the last registered one after this callbackIn the current design it implies the latter (from the default value being
n
, andn
called atnumber of callbacks
), but this design is unhinged and absolutely nightmarish to use.Also, note that the test only tests a single use of
n = 0
, so it doesn't touch any of the scenario above, and both implementations will pass. This needs to be explicitly tested.Random tests have fixed structures with randomized arguments, which is not acceptable. It is very easy to hard code against this (especially since it is the same structure as the sample tests).
root |> foo |> eggs
The semantics of result passing and arity handling is not defined anywhere. Apparently
root
can be in any arity, while every callback function must have arity 1 (and every returned result is directly passed to the next function). Having different handling for root and branch nodes is certainly not expected (also technically you can pass around multiple arguments by spreading an array, like in JS), and should be specified.spelling error in the sample tests wasted is misspelled as waisted
Who waisted 10sec of their life? - You
Hi,
It would be good to talk about the specs of the result in the first part of the description and not relegate that to its very end. Just talkign about "joining the chars in ... order" or something like this should be enough.
Cheers
This comment is hidden because it contains spoiler information about the solution