Ad
  • Custom User Avatar

    I knew it was too good to be true.

    Thanks for pointing that out.

  • Custom User Avatar

    I didn't realize that anonymous functions were getting autonamed. That could be frustrating.

    This really was one of the most chalenging Katas I've ever tried, though. I think if maybe the description was a little more explicit on what would or wouldn't work, that would make it more fun.

  • Custom User Avatar

    Now that I've completed the Kata, I have a few remarks

    1. Make it clear what's been disabled: the Number and String constructors, as well as their literals. Not only that, template strings are disabled, too. So '', "", `` are all disallowed.
    2. The regex that you're using isn't very nice. If you're using a regex at all, and not some sort of demon spawned from the 14th level of obfuscation hell who likes to bitch slap characters for no reason. What I mean, quite specifically, is that it can't discern what I've put in comments, and what I've not put in comments. Also, when I write /I"m not feeling this Kata/, it throws an error because I've decided to use an apostrophe... in a comment!
    3. I couldn't even assign a variable such as __1 . __1 = blah is not a thing I could do. Please make it clear that numbers and strings are disabled in both the left hand, and right hand side of operators.
    4. The whole things starts off with var helloWorld = function () {}, which immediately throws an error. Please either change how this starts off, or provide an explanation for why you want to watch the world burn. I'm fine with either

    Great kata, though. I hope to never do it again.

  • Custom User Avatar

    Best comments so far, go to you.

  • Custom User Avatar

    I get the same result. I just have the thing return itself and I get an error, making me think that the name of the variable is a problem.

  • Custom User Avatar

    Maybe my description wasn't the best. I understood really well what the Caesar was and how it worked. I just wasn't seeing its relationship to the Vigenère. And yeah, "The shift is derived by applying a Caesar shift to a character with the corresponding index of the key in the alphabet." now makes sense.

    I had to look at the example on wikipedia and manually perform an encryption before I understood exactly how the cypher worked. And the best way that it worked in my head was, "oh, it's basic addition and subtraction."

    I didn't realize the difficult was the same across languages. Interesting.

  • Custom User Avatar

    this was a really fun Kata. seemed a little easy for a 4 Kyu kata, though.

    The description of the cypher was a little confusing though. I had to go to wikipedia and read the page to really understand how the cipher worked.

    Maybe if it explained the cipher something like:

    A Caesar cipher shifts all letters in the string n spaces.
    A Vigenère cipher shifts each individual letter in the string n space, where n is calculated as "index of the original letter in the string + index of the letter in the key"

    A Caesar encrption can use a shift value of 3, turning 'dog' (3,14,6) into 'grj' (6,17,9)
    But Vigenère uses the key 'pup' (15,20,15) to turn 'dog' (3,14,6) into 'siv' (18,8, 21).

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    Maybe it's because I'm still ranked very low, but I've noticed that most of the (JavaScript) katas have a solution that revolves around some combination of array and/or regex.

    Inevitably, I submit a final, cleaned up solution thinking, "yep, this is a really solid 18 lines of code." then I see someone else's solution that was a single line, consisting entirely of some Regex. Similarly, I'll look a solution that I thought was decent in 24 lines, and I'll see that someone just used some method on an array that I didn't even know existed.

    On one hand, this is educational. It exposes me to things I wouldn't otherwise no.

    On the other, it doesn't teach me much about problem solving. I see a lot of people that have amazing Regex-fu, and that doesn't teach me anything about algorithms or the language.

    Could we either label Katas as, "requires regex" or possibly turn off regex features, so that we can expose people to other ways to solve problems?

  • Custom User Avatar

    Id, class, and element are not a kind of "decimal" or "powers of ten", where 100 classes = 1 Id. A single ID always overrides a class, no matter how many classes there are.

    though, fun fact, browsers did not implement this correctly: http://www.thecssninja.com/css/extreme-specificity

  • Custom User Avatar

    This is a good exercise.

    I would recommend, though, that there be an added "twist" where one should have to work with either 3-digit or 6-digit hex.