36 comments

[ 2.1 ms ] story [ 73.8 ms ] thread
Little flakey (running on Chrome Mac). I type in an answer, press Submit, and nothing happens. When I reload it finally updates and shows the next question.
Same here (even on Chrome Mac), but I get an "unknown error". But when I switch to coffeescript or ruby, it then shows up that I got the correct answer (in the Earn an Invite section).
Same, that only worked a couple of times for me though (Safari Mac)
I ended up making it all the way past the third question (though I had to enter the same solution a few times). I ended up getting the invite page but then just left.
The first Javascript kata fails with an unknown error, even if the code is correct.

You probably want to fix this bit too: http://imgur.com/KqYuCHn

Also, if your browser window is too narrow it suddenly thinks you're on a mobile device and ceases to work.

Also experiencing both issues. I'm curious how some people have got onto #2 already-- maybe it's looking for a specific solution rather than a valid one
I'm glad it wasn't just me. I felt like something must be seriously wrong if I couldn't write a multiply function properly.
same stuff , doesnt work ...
Wow! We had no idea someone would be posting about us on HN today. We were not prepared. The site has been scaled up and it should working now.

UPDATE:

I was a bit hasty with my original comment. There was a regression bug that was still causing the landing page to be broken. A fix has been deployed and things should be working now.

Your script executor is still super busted. "Unknown error" for days.
I got to the final one then it just refreshes when I submit my solution (Note: I have to click JS rather than Submit or I get "Unknown Error").
Actually it seems to work, accepting a solution and allowing to progress, if you enter your solution as desired and then click on the type/icon of language you answered for.

Nice idea, but its hard to get any reason to register if there is no bigger picture or the ability to interact in any way with the site.

A bit strange written in your "privacy policy" by scattering through:

"credit card... obtain payment from you." ? ->

"Our Site’s subscription registration form will request that you give us your name, email address, credit card information, and certain other information that will enable us to provide our services to you and obtain payment from you. We may from time to time send information in the form of email to those who register with us at codewars.com. You may always opt out of receiving future mailings."

Maybe there is not everything correct and might need modification?

Yea.. Can't get this to work..

Q: Given 2 strings, a and b, return a string of the form short+long+short, with the shorter string on the outside and the longer string on the inside. The strings will not be the same length, but they may be empty (length0).

My Answer:

  function solution(a, b){
    if(typeof(undefined) == typeof(a))
      a = "";
    if(typeof(undefined) == typeof(b))
      b = "";

    if(a.length > b.length)
      return b + a + b;
    else
      return a + b + a;
  }
Result: "Unknown Error"

Of course my solution doesn't account for a.length == b.length, but the question is somewhat nonsensical in that it states '...strings will not be the same length, but they may be empty...' (2 empty strings would be the same length)...

Stupidly buggy. The correct answer tells me "Unknown Error".
I love when a site asks me to write code that works when its own code doesn't.

Unknown error.

Aside from the code tester not working properly, their branding and design are ignorant and overzealous.

"Katas"? an Ensō? It's code, chill out.

I actually liked the design. There is always someone who looks at a "Show HN" just to tear it down though.
It's kind of funny.

Check out rubymonk.com, seemed like a similar idea.

Nice, haven't touched ruby in awhile but glad it's not just me. I was worried when I couldn't troubleshoot a simple multiply function:

def multiply(a b)

  a*b
end

        def multiply(a, b)

          a*b

        end
note the comma in params
Sorry wasn't clear in my post, that was the broken code I had to fix. I added the comma and got the unknown error message.

However I just reloaded the page and it's showing a different code snippet and says 1 of 3 completed.

I fixed the code, click submit. nothing happens?
The site is definitely buggy. I'm getting the following errors in Chrome:

   no pushstate application-2667ae701c78991056dcdf4c46459327.js:19
   Uncaught TypeError: Cannot call method 'replace' of undefined ace.js:1
   Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings.  It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU...

I'm glad it's their fault, i was actually getting depressed not finding my error...

Apparently there wasn't a lot of collaboration on the site code itself; as has been mentioned, it's pretty buggy. Or maybe that's the REAL test...
It's possible. The site does instruct the user: "The code does not execute properly. Try to figure out why."

Maybe it's not talking about the function.

Whew. Yeah, I thought I was going crazy.
"The code does not execute properly. Try to figure out why."

I guess the challenge is to build a working version of their site for them?

I like the concept + UI and have saved the bookmark.

Don't let the bug comments get you down - this is cool.

(comment deleted)
I still got Unknown Error on submission, but on page refresh would be pushed to the next snippet.
Re: Unknown error --

$.post(App.route("attempt",this.playData),e,function(e){var n;return n=e.reason,n||(n=e.valid?["Good Job!","Correct!"].sample():"Unknown error")

When I pop open the Chrome network tab, this is what the response to /attempt looks like: {success: true, dmid: ikspmzs0}

Given that .sample() just returns a random array element, I'm assuming it's freaking out because it's expecting "valid" and getting "success" instead.

Ooops – @setAnnotations:

Chrome: "TypeError: Cannot call method 'replace' of undefined"

Safari: "TypeError: 'undefined is not an object (evaluating 'f.text.replace')"

Firefox: "TypeError: f.text is undefined"

Not exactly advertising competence in JS ... (Wasn't there any testing?)

Thanks for all the feedback - we got caught in the middle of a performance upgrade so the sites code challenge engine isn't working under load right now.
I don't know what this is, but apparently I'm "enlisted" now... The design on the site looks really cool, though.
I dig it! Didn't get any of the errors everyone else here seems to be experiencing (Chrome on Win, v27). Looking forward to more of this. Nice job.