Live data from Hacker News

Code Wars (JS, Coffeescript & Ruby)

codewars.com

11–20 of 37 posts

Re: Code Wars (JS, Coffeescript & Ruby)

#14

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.

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.

Re: Code Wars (JS, Coffeescript & Ruby)

#15

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.

Re: Code Wars (JS, Coffeescript & Ruby)

#16
post #11

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.

Re: Code Wars (JS, Coffeescript & Ruby)

#17

Earlier quoted context omitted.

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.

Re: Code Wars (JS, Coffeescript & Ruby)

#20

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.

Post reply on HN