Ad
  • Custom User Avatar

    Not an issue

  • Custom User Avatar

    No need to be embarrased. :) Thanks for helping me improve the test cases.

  • Custom User Avatar

    Just looking at this again and your issue has higlighted a way in which the fixed test cases could be improved. The random test cases are showing you what is wrong with your code, but the fixed ones aren't affected by the error, which is why they pass.
    I will update the fixed test cases and that will give you a better hint.

  • Custom User Avatar

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

  • Custom User Avatar

    Upon further exposure to programming and awareness of my lack of understanding of anything - tetreault you are correct. This is not chaining. it's a foldr method with an array of functions. that is all. I concede to you sir. However I can't change the name of this kata. I must apologize profusely. :'(

  • Custom User Avatar

    You don't have to check if the crew weight is greater than draft.

    You have to check if the draft is more than 20 units greater than the weight of crew.

  • Custom User Avatar

    Imho the description does not distract too much, you can still skip it going straight to the "Task" part and having some flavour isn't that bad, just to not have a site with a bunch of soulless problems.

    Just my 0.02€, of course.

    Oh, and while at it: kata green-lit, random tests added to the JS version too!

  • Custom User Avatar

    I don't know I think it should stay :P it does not effect the task :)

  • Custom User Avatar

    Thanks. I just changed the code to uppercase all the input letters.

  • Custom User Avatar

    Well jQuery chaining isn't really specific to jQuery, its native javascript at work. The type of chaining you're talking about is done by returning the "this" reference in the function. This type of chaining is incredibly useful, and has a lot of excellent applications. However, it does have it's limitations.

    The chainer that this kata is describing is meant to be general. Such that you can apply it anywhere you need to de sequential operations, in a very clean manner. The functions/methods passed into it can be from anywhere and as such allow for a different type of versatility.