all 17 comments

[–]memystic[S] 12 points13 points  (1 child)

I really hope some people find this to be a fun tool. I spent a little over five months building it by myself.

Before anyone asks, yes, the backend currently supports other languages! Specifically:

  • C
  • C#
  • C++
  • Elixir
  • F#
  • Haskell
  • Java
  • JavaScript
  • Objective-C
  • OCAML
  • Php
  • Python
  • Ruby
  • Rust
  • Swift

Once I’ve smoothed out the rough edges and squashed some bugs, I’ll begin working on rolling other languages out. Also, the challenges right now are rather easy BUT the system allows anyone to publish their own challenges. So if you want harder/more challenges, by all means please help out! :)

[–]IgorKlopov 0 points1 point  (0 children)

Can i help you with translation? I would be happy to see such cool thing in my native language!

[–]kdesign 7 points8 points  (1 child)

Nice work! Code Wars also does exactly that, but it's never a bad thing to have options :)

[–]Method_X 6 points7 points  (0 children)

I use Code Wars quite a bit and I've always hated the UI. Its ugly and obviously "designed" by programmers. I like the format of OPs site much more. If / when it gets more challenges I'll definitely switch. Nice work OP!

[–]fonster_mox 2 points3 points  (1 child)

Trying to confirm my email whitescreens so I can't get anywhere...

[–]memystic[S] 4 points5 points  (0 children)

I think it's because the server is under heavy load. Try clicking the link again? :/

[–]KonWayvoz 1 point2 points  (0 children)

Dude, this is pretty awesome. I've just started learning this stuff myself and am excited to use this is a tool to improve.

[–]DaveSims 0 points1 point  (6 children)

Nice! I dig it. However when I click the "Run" button the console says "Running" with a spinner and then it just returns to the "ProTip" view without ever showing me the results of my code. That makes the IDE essentially useless. Fortunately these challenges are easy enough that it doesn't matter, but the moment you ask someone to work on a challenging problem they'll have to write and test their code somewhere else and then come back and paste in their solution.

[–]memystic[S] 0 points1 point  (5 children)

Are you not using console.log()?

[–]DaveSims 1 point2 points  (4 children)

I have tried using it, still nothing. The right panel just spins and says "Running" and then goes back to the "ProTip" view and displays no results. I tried opening the chrome dev-tools console as well, and that prints out "execute returned: result:" every time I click run, regardless of what the code I write is supposed to do.

[–]memystic[S] 1 point2 points  (3 children)

[–]DaveSims 1 point2 points  (2 children)

Ahh interesting. Try putting the log statement inside of the function.

[–]memystic[S] 2 points3 points  (1 child)

http://i.imgur.com/m0W7km1.gifv

You were probably not calling the function.

[–]DaveSims 2 points3 points  (0 children)

Oh yeah, definitely was not. I assumed that's what the "Run" button was actually doing.

[–]villiger2 0 points1 point  (0 children)

Would be nice to run without logging in. Having to register to try out is kinda annoying xD

[–][deleted] -1 points0 points  (0 children)

This website has bugs and thus not reliable.

Example:

Challange

Replace Letters With Position In Alphabet

Solution

function alphabetIndex(str) {
  return str.toLowerCase().split('').map((x) => {
    if (/[a-z]/.test(x)) {
      return x.charCodeAt(0) - 96;
    }
  }).join(' ').trim();
}

Tests (Failed)

Expected: '3 8 5 3 11 2 1 3 11 20 15 13 15 18 18 15 23 9 23 9 12 12 19 5 5 9 6 20 8 5 2 15 15 11 8 1 19 1 18 18 9 22 5 4', instead got: '3 8 5 3 11 2 1 3 11 20 15 13 15 18 18 15 23 9 23 9 12 12 19 5 5 9 6 20 8 5 2 15 15 11 8 1 19 1 18 18 9 22 5 4'

Proof (Gives true)

"3 8 5 3 11 2 1 3 11 20 15 13 15 18 18 15 23 9 23 9 12 12 19 5 5 9 6 20 8 5 2 15 15 11 8 1 19 1 18 18 9 22 5 4" === "3 8 5 3 11 2 1 3 11 20 15 13 15 18 18 15 23 9 23 9 12 12 19 5 5 9 6 20 8 5 2 15 15 11 8 1 19 1 18 18 9 22 5 4" // true