Ad
  • Custom User Avatar

    Ok, I see your point. From my point of view, I try to solve a Kata and then learn from the more experienced programmers how my solutions could be better. That's why I really like to see good code that is also readable. Sorry for complaining and you are right, everyone should decide for themselves how they solve their Katas.

  • Custom User Avatar

    Isn't it easy to read, it's a simple kata (probably i solved 50 prime katas;-)) so the code can't be too difficult;-)?!
    "Clean code and comments" make sense for "bigger projects", but is often boring for katas:-)... So i like to be "quick and dirty" and often "compact";-)

  • Custom User Avatar

    At first I thought your solution would be really well done because it seemed so compact. After taking the time to really read your version I have to say that it's just messy. Why don't you try to write clean code that is easy to read, also for people that are not you? There is no shame in using brackets and line breaks :-)