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.
I am partisan of some uniformity in the results, maybe it is lazyness of which I see many advantages...
As for "Help the bookseller" I let you guess who was the translator! Maybe at that time I was a bit influenced by your saying about strings. Furthermore "my" katas" are small kata and not real applications so the form of the result is not very important. I have no boss asking for results this way or that way:-) I prefer to spend more time on the way I get a result than on the result itself.
Still, a dictionary would be much better than a string. And it's possible in almost every language, also called associative array. To quote Wikipedia (like you did ;)):
But I'm not going to point out all the advantages of not using strings this time :P. To be honest, I simply believe that you're too lazy to change the way you're testing or don't want to use the proper types for each language. Back at Help the bookseller you at least allowed translators to use the correct type (see Clojure and Haskell), but nowadays it seems like you're using strings all the time. Funny enough, I think I've found the first comment on the problem:
Can't believe it has been 4 months. By the way, you can still improve your description.
@IVBakker:
You are not correct, it is said:
So f is money, isn't it? Then
Each answer will be given as ["M: f", "B: b", "C: c"]
,M: f
means that "M" is for the value "f" of 'M'oney like "B": b is for boat and "C": c for cars. Oh, yeah, I agree that is a bit cryptic. I will try to better the description.As for
"poorly" is not very kind for the poor author:-) A list of dictionnary would be much more useful but "useful" to what? I had lots of discussions about strings wit @bkaes. Strings are data as another ones, common in their form to all languages (Wikipedia: Strings are such an important and useful datatype that they are implemented in nearly every programming language), easy to manipulate and allow to concentrate on the core of the function and not to the form of its result.
@g964 no I don't think anyone would understand in 5sec. I still don't get what is what.
In the description "Can you tell me how much
f
he could possibly have. Then further in the descriptionEach answer will be given as ["M: f", "B: b", "C: c"] and all the answers as [ ["M: f", "B: b", "C: c"] ... ].
what is M?Also returning string is poorly designed, a list of dictionnary would be much more useful.
This comment is hidden because it contains spoiler information about the solution
@sebastialonso: I modified the description, thanks.
@bkaes: I'll read it, thanks.
@g964: Added a section concerning stories/tasks in the guide.
Please could you give an example in this kata? I see no run-on sentence in it but I could be wrong.
Your descriptions often contain run-on sentences. Consider getting rid of those.
Some guys understand in 5 seconds, somme others in 5 mn, it is a fact of nature:-)