Ad
  • Default User Avatar

    Unpack returns an array, and * is just a shorthand method to join the array as a string by the supplied delimiter ('.')

  • Custom User Avatar

    Typo in description. "Write a bdy"

  • Custom User Avatar

    Stupid and worthless cata.

  • Custom User Avatar

    Wow! Could you explain please how * works in your solution?

  • Custom User Avatar
  • Custom User Avatar

    This kata has very unclear description... For what sake do you need key_1 and key_2? oO

  • Custom User Avatar

    Thank you. Another bite of JS to know.

  • Custom User Avatar

    I've opened the Catalog and filtered it by:

    • Language: Coffescript;
    • My Progress: Kata I have not trained on.

    It displays a number of katas.

    So:

    1. Skip with focus on Fundamentals should display unsolved katas.
    2. When all katas are solved in selected language and focus, Skip should explicitly inform user about it.

    Thank you.

  • Custom User Avatar

    Ah. Yes this is a JavaScript issue. In Ruby [1,2] == [1,2] will be true, but in JavaScript it will be false because they are actually two different memory objects/references. IMO, ideally in JS [1,2] == [1,2] would be true and [1,2] === [1,2] would be false - but this is not the case.

    Because of this we provide the Test.assertSimilar([1,2], [1,2]) method which will return true.

    One caveat to be aware of is that this method can be used to assert similarity of two objects (such as {a: 1, b: 2} but it enforces key order. So Test.assertSimilar({a: 1, b: 2}, {b: 2, a: 1}) would be false where as Test.assertSimilar({a: 1, b: 2}, {a: 1, b: 2}) would be true. In the next version of the framework we are going to fix this.

  • Custom User Avatar

    Ah. There are less fundamental kata than there are algorithms. Plus it looks like you are focusing on Ruby and CoffeeScript which have less than JavaScript. We start giving you old ones once you have gone exhausted the list. Does this sound about right or is this happening for JS kata as well?

    Also retraining on kata isn't such a bad idea. In fact thats part of what kata are all about. Try exploring new ways of solving old problems. You can always look at your previous solutions and see if you can improve upon them further.

  • Custom User Avatar

    Fundamentals.

  • Custom User Avatar

    Test.assertEquals([1,2,3], [1,2,3])

    Test Failed: Expected: [1,2,3], instead got: [1,2,3]

  • Custom User Avatar

    What is the test case that you are running?

  • Custom User Avatar

    This should have been fixed a few days ago. Is this still happening?

  • Custom User Avatar

    That shouldn't be happening. Which "focus" are you using? "Fundamentals" or "Rank Up"?

  • Loading more items...