Ad
  • Custom User Avatar

    There's no such thing as self-documenting code.

    Come down from your ivory tower. Code can be elegant, but a single function is not itself art.

    A function, or even a library of functions, is a tool. Comments and documentation are how we explain to future users how best to implement whatever tool we've created.

  • Custom User Avatar

    Great comments <3

  • Custom User Avatar

    Please reread what I wrote and re-check your tests. As many other users have pointed out, that test fails for them, as well. Case insensitization would mean that the case wouod be ignored, so MoOse and moose would be treated the same way. That isn't happening as it should be; it's not working as intended. Check your work.

  • Custom User Avatar

    There are absolutely ways to ignore casing here. Unfortunately, one of the tests written requires case sensitivity, so your function might be perfectly correct and still fail to clear this kata.

  • Custom User Avatar

    The instructions state that the function should be case INSENSITIVE, but one of the tests requires case sensitivity (i.e.: "MoOse === moose" // false;).

  • Custom User Avatar

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

  • Custom User Avatar

    Commenting your code would be helpful

  • Default User Avatar

    That's understandable. However, BigInt has been widely supported for quite a while now, so the instructions for the Kata should probably be updated to explicitly state that BigInt is to be avoided in any solutions attempted.

  • Default User Avatar

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