that the dictionary is an array and not an object (it's not a "list" in JS, btw. Let's rather say that the problem here is that a "dictionary" is generally a mapping, not an array)
that 3 or 4 aren't unicode single char, but strings of 2 chars...
I'd strongly suggest:
to remove the dictionary and provide the array itself in the reference solution (or even, in the description and let the user do whatever he wants with it)
having the delta of 1 between the symbol and the value is just... awkward (to not say bad...)
this example is wrong: dictionnary[3] == ':.' // 4
Pleaseee did you figure this out eventually... I ended the journey here too and I am still very curious.
Insufficient testing for invalid input allows incorrect code to pass. (JS at least)
The kata has been retired, maybe it won't allow submits anymore ?
Before that it worked fine
I Cant submit solution.
This comment is hidden because it contains spoiler information about the solution
I think validate the input (especially the string input) is part of the challenge
changed
Ok I fixed the points you pointed, except for the "delta 1 btween the symbol and the value" which I guess is one point of this kata.
Sorry, I don't see what you mean, could you explain ? Do you suggest tests and random test only send valid parameters ?
All agreed, thanks for the feedback
i'll change all that, I don't know what will happen with the former solutions
oops, sorry (I have a similar word in my language with 2 n, for my defense)
Do you think I can change this ? this will invalidate former solutions...
sure, I had doubts about using 'false'. returning an empty string and 0 would be better, for typed language translations.
how can I change this now without invalidating existing solution ?
I'm new to creating katas, I don't know the right way to do these kind of things
Input validation should be removed.
Hi,
It's not said:
I'd strongly suggest:
dictionnary[3] == ':.' // 4
dictionnary
should bedictionary
Loading more items...