Ad
  • Default User Avatar

    This page was slow because it wasn't cached since people seldomly visit this page. Which other pages are slow for you?

  • Default User Avatar

    Obj-C & Swift are the hardest to implement because they require OSX. We could use GNUstep, but its kind of a mess from what we understand. Our plan was to run a separate code execution cluster using hosted Mac Mini's and we have the test framework implemention done to make it work with our schema, we just need to finish the infrastructure which we don't have the development resources to do right now.

  • Default User Avatar

    You can print anything you want to STDOUT.

  • Default User Avatar
  • Default User Avatar

    The description could use some examples.

  • Default User Avatar

    Nice beginner kata.

  • Default User Avatar

    Thanks. It should be fixed now.

  • Default User Avatar

    I updated the test cases to use the new describe and it features. Hopefully this puts the fun back into the kata. I didn't want to be super specific with the test case errors. If I did people would just do the minimal amount needed to pass the tests, where I was hoping that by being more vague it would force you to have to create a more thorough set of test cases.

  • Default User Avatar

    Nice kata. I think a harder version that builds off of this one would be great. Where you are given a block of text (or array of words) and you need to find all anagram groups within the text.

  • Default User Avatar

    Preloaded section:

    Array.prototype.sort = function(){throw 'Sort is disabled';}
    
  • Default User Avatar

    Man you must love your oxford commas.

  • Default User Avatar

    They are using git flavored markdown. Use three back ticks (```) to start and end a code block. After the first set of back ticks you can specify the language.

  • Default User Avatar

    I updated the kata to also support processing non-hash items using the identify method. This will break all of the existing solutions unfortunately, but it makes the class purpose more practical and I think it probably helps clarify some of these issues. With normal class instances comparing (==) two instances with identical attribute values will return false since they don't point to the same reference.

  • Default User Avatar

    I think I'm going to stop using the word reference, especially since in ruby its a bit confusing since the following would work:

    a = {id: 1}
    b = {id: 1}
    
    a == b # in ruby this would be true, in many other languages (ie JavaScript) it would be false since they don't point to the same memory reference
    
  • Default User Avatar

    When I say "reference" I meant that the typical way of determining if two items are the same (they point to the same reference). For example:

    a = {id: 1}
    b = {id: 1, name: 'example'}
    
    # without identity being called they would be compared like so:
    a == b # false
    
    # with identity(:id) called they would be compared like so:
    a[:id] == b[:id] # true
    
  • Loading more items...