Ad
  • Custom User Avatar

  • Custom User Avatar

    I note right away that this is my first kata, so I hardly understand how the tests should look. Therefore, I will clarify:

    • Should I add more tests with 'random' inputs?
    • Do fixed tests imply no 'random' inputs or something else?
  • Custom User Avatar

    Ohh, thank you, i will fix it as soon as i can

  • Custom User Avatar

    You won't be the first or the last to do it, but there's no benefit to doing that.

    The blocking function prevents the blocked person from texting me and leaving comments on my Kata

    Neither is that required for your kata

    In the condition I indicated a note to use generics and I see that many options have appeared that I did not even think about, using them I will update the task conditions

    There is a beta process here: respect it, and the people taking their time to review your kata.

    FArekkusu wrote to me that this is a duplicate (without clarification), but I adequately answered that I see differences and closed the problem, instead they answered me rudely, is this the respect you are talking about? Nonsense, I do not intend to endure this. No.

    You forcefully bring different tasks to the same form and I think this is wrong. When I created this kata, I was looking for just such a grouping. In addition, it was interesting for me to look at the solutions of this particular Kata and not a similar-simplified.

  • Default User Avatar

    The resolved issue is below.

  • Default User Avatar

    Stick to constructive criticism without offense "any sensible user" or i will block you >:\
    Firstly - code from the Kata you mentioned: 1) can't group objects 2) solution not use generics - right?
    Secondly - in my Kata you can specify the key by which objects be group:

    // In example Kata we have key 'status', but we may pick other field:
    const byKey = 'description';
    

    Then output:

    [
      {
        key: "OK",
        values: [
          { status: 200, description: "OK" },
          { status: 200, description: "OK" },
        ],
      },
      { key: "Not Found", values: [{ status: 404, description: "Not Found" }] },
      {
        key: "Internal Server Error",
        values: [{ status: 500, description: "Internal Server Error" }],
      },
    ]
    

    Thus, we have at least 3 differences.

  • Default User Avatar

    I do not see objects in input there and the key cannot be specified.

  • Custom User Avatar

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