7 kyu

Sentences with Functions

3,328 of 3,458BattleRattle
Description
Loading description...
Fundamentals
  • Please sign in or sign up to leave a comment.
  • Amodeus R. Avatar

    This Kata doesn't make sense. We don't want to learn how to code to make predetermined things, but to take care of unpredictable ones. Don't lose your time with this Kata, really, you won't learn much to put in practice in real life.

  • user4896126 Avatar

    this kata disgusts me and letting you all know makes me feel better

  • noahedwardhall Avatar

    This comment has been hidden.

  • GaspardP Avatar

    This comment has been hidden.

  • l337 Avatar

    I am getting stuck, is it necessary to have arguments with every function listed? I think I am headed in the right direction when I use:

    return arguments.callee.name;

    Although I am also thinking I can just split the '(' in Adam and The functions?

    Can anyone help me into at least leading me in the right direction instead of bashing my head on the keyboard, please! Thanks.

  • JohnnyNonsense Avatar

    problems like this are kind of annoying - you'd never want to pollute the global namespace with functions like that.

  • ppaul Avatar

    This is a tremendous example of KISS...

  • schikara Avatar

    This actually made me think alot!!! :D

  • FernandoCanizo Avatar

    This comment has been hidden.

  • aledpardo Avatar

    Nice one! 'With many paths to Rome'.

  • thzinc Avatar

    This was tough.

  • xDranik Avatar

    I really need to spend more time reading the description...xD

  • JulianNicholls Avatar

    I definitely overthunk this one :-)

  • jhoffner Avatar

    Good kata. It would be useful if it returned a better error message than just "value was not what was expected". You could use Test.assertEquals() to do this. Given that the expected value is in the actual description, I could however see the argument that keeping the messaging vague will force users to write their own test cases.

    I like that there is an easy way to solve this but its also very open to people taking the time to come up with sophisticated solutions.

  • UberGeek Avatar

    This is a mean one, I totally stepped into the trap it sets up and thought waaayyy too complicated... :S I like it, teaches to really think about the simplest possible solution... :D