Ad
  • Default User Avatar

    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.

  • Custom User Avatar

    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 ;)):

    Many programming languages include associative arrays as primitive data types, and they are available in software libraries for many others.

    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:

    I've justiced that you have the tendency to use strings in your katas. This might be fine for some small katas etc, but in real applications you usually want to use the correct data type.

    Can't believe it has been 4 months. By the way, you can still improve your description.

  • Default User Avatar

    @IVBakker:

    In the description "Can you tell me how much f he could possibly have

    You are not correct, it is said:

    how much money f he could possibly have... ?

    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

    returning string is poorly designed, a list of dictionnary would be much more useful.

    "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.

  • Custom User Avatar

    @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 description Each 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.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    @sebastialonso: I modified the description, thanks.
    @bkaes: I'll read it, thanks.

  • Custom User Avatar

    @g964: Added a section concerning stories/tasks in the guide.

  • Default User Avatar

    Please could you give an example in this kata? I see no run-on sentence in it but I could be wrong.

  • Custom User Avatar

    Your descriptions often contain run-on sentences. Consider getting rid of those.

  • Default User Avatar

    Some guys understand in 5 seconds, somme others in 5 mn, it is a fact of nature:-)