Ad
  • Custom User Avatar

    This was a nice one. Thanks!

  • Custom User Avatar

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

  • Custom User Avatar

    I think that test fixtures for this kata are not strict enough. Correct me if I am wrong, but this solution is not checking if the final result is longer than 140, but the entry string, so it might filter out strings that are over 140 characters, but would generate hashtags that are shorter than 140 chars.

  • Custom User Avatar

    This. Kata looks broken :/.

  • Custom User Avatar

    Allright, I see that I am a little outnumbered here :). I will add formulas suggested by wthit56. Thank you all for the feedback.

  • Custom User Avatar

    I think I understand what you mean, but my point still stands (at least for me :) ).

    When you are writing some kind of physics simulator you can just memorize formulas and try to apply them, or you can understand the thing you are trying to model and do it while fully aware of what is happening inside.

    The description provides basic information about initial values - ship mass and velocity. It also says that you should use Newton's Mechanics. I think it's enough. Maybe someone else will back you or me up on this topic?

  • Custom User Avatar

    Thanks for this comment.

    I disagree with you - these formulas are not enough to finish this kata. Moreover, to finish it you need to have at least basic understanding of Newton's laws of motion, and I think that wikipedia does better work in explaining them than I would :).

  • Custom User Avatar

    Thanks for that, fixed it.

  • Custom User Avatar

    I am stuck on fibonacci as well (similar issue, but I get 'I7' instead of '02' in place of first '1'). Tomorrow we shall be victorious!

  • Custom User Avatar

    Ok, I get it now, thank you for response :)

  • Custom User Avatar

    Great kata, it was harder than simple bomb :).

    I have a question - how do you create objects that have properties that are not visible in for(var key in object) loop and that are not visible in object, or in object.prototype (when prototype is undefined).

    I don't think I would ever use this technique, I am just curious about how did you do it.

  • Custom User Avatar

    IMHO even if it's an overkill, it's an elegant one :D.

  • Custom User Avatar

    Ad.1 Isn't 0.5 time in example test fixture enough? If not, maybe I will state it in the description.

    Ad.2 I added address to wikipedia page about Newton's laws of motion, if you dig enough you will also find formula for the distance traveled in movement with constant acceleration.

    Ad.3 I also struggle with this sometime, I usually test my code in node console first and then I submit it on the site.

    Thanks for your feedback!

  • Custom User Avatar

    Yes I did, thanks.

  • Custom User Avatar

    Force is constant during an event - if event has some force F, begins at t1 and takes t2 time units, it means that force F is applied on ship from from t1 to (t1 + t2).

  • Loading more items...