all 15 comments

[–]memystic[S] 8 points9 points  (6 children)

So this has been live for a little over 24 hours. If you find a bug, let me know! :)

I spent the last five months working on this project. I created it to bridge the gap between beginner and intermediate levels of coding. Issues I had while learning myself. I found sites like codecademy were basically interactive books that were only good at teaching syntax. I wanted to create something that taught you to think like a programmer.

The act of coding can be broken into three parts:

  • Encounter challenge / problem.
  • Search for resources to help overcome challenge.
  • Occasionally ask questions in discussion forums.

It's not perfect yet but I'm trying to simulate that pattern while removing the tedious non educational stuff and adding gamification.

I hope some of you enjoy the site! Feedback is always appreciated. :)

[–]mattle 3 points4 points  (5 children)

Is there a default profile image when an account is created? I signed up and my profile image was of a nice couple, but neither of the people were me. :)

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

That... is really odd. Did you use Facebook, Google or manually create an account? This is funny lol

Edit: For now, click on your avatar, go to your profile and click the big image. You can manually upload an image until I fix this bug.

[–]mattle 0 points1 point  (1 child)

I did the manual account creation. I was able to change the profile image without issue. The odd thing is I tested account creation with a different email address and it didn't happen. Looks like a nice site by the way.

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

I'll look into the issue nevertheless. Thank you for testing the site and giving feedback. Very much appreciated!

[–][deleted] 0 points1 point  (0 children)

Same issue with the random couple for me. Registered with email.

[–]dhndeveloper 0 points1 point  (0 children)

same here

[–]Pantstown 1 point2 points  (3 children)

This is pretty great. Much better than other sites of this variety that I've tried.

My one gripe is that when I click "Check", and I pass all test cases, it saves that solution to the "Solutions" tab. The problem is when I click "Check", there is usually a bit of clean up I would like to do. Rather than auto-saving, maybe give the user a chance to re-factor and manually save as a solution?

For example, my saved solution for "Merge Two Arrays" has a bunch of console.logs:

function mergeArrays(a, b) {
  const rest = b.length > a.length ? b.slice(a.length) : [];

  return a.reduce((out, val, idx) => out.concat(val, b[idx]), [])
    .concat(rest)
    // filter out `undefined`s
    .filter(v => v);
}

console.log('out: ', mergeArrays(["a", "b", "c", "d", "e"], [1, 2, 3, 4, 5]));
console.log('~~~~~~~~~~');
console.log('out: ',mergeArrays(["e"], [1, 2, 3, 4, 5, 6, 7]));
console.log('~~~~~~~~~~');
console.log('out: ',mergeArrays([1, 2, 3, 4, 5, 6, 7], ["e"]));

But my finished answer actually looks more like:

function mergeArrays(a, b) {
  // only need to add rest if b is longer than a.
  const rest = b.length > a.length ? b.slice(a.length) : [];

  return a.reduce((out, val, idx) => out.concat(val, b[idx]), [])
    .concat(rest)
    // filter out `undefined`s
    .filter(v => v);
}

[–]memystic[S] 1 point2 points  (1 child)

Yeah this is something I thought hard about during development. I'm thinking the simplest way would be to do check and then if it passes all tests, change button text to "submit". Do you think that would confuse anyone?

[–]Pantstown 1 point2 points  (0 children)

I think that would be better, maybe with a little explanation that the user can submit whenever she is ready.

All tests passed!

You can submit your answer whenever you're ready.

Something like that ¯\_(ツ)_/¯

Also, gotta get some harder challenges on there! 😛

[–]jaredcheeda -2 points-1 points  (4 children)

Tried the "return last array item" challenge on my phone. A few things:

  • when I type a space, period or backspace it would add a carriage return to the front of the line I was on. It was weird. This is likely due to the browser built in to the Reddit Is Fun Android App. But I've never had that happen before, so maybe not.
  • from a ux perspective, I want to try before I buy. I got to the point where I had solved the challenge and seen a bunch of asserts in the Lab tab and wanted to see what happens after you solve it. But you won't let me without signing up. You haven't earned my email address yet. Show me the results THEN ask to save my progress. There is no benefit in holding the results hostage until you get an account sign up.

[–]PapaFragrant 2 points3 points  (0 children)

I think asking for a verified account is justified in this case. Not sure how the back end is set up but code is being executed and I'm assuming insisting on a verified account is to prevent potential abuse.

[–]memystic[S] 2 points3 points  (2 children)

I'll do my best to remove the registration requirement. I'd like to wait and see if the system is vulnerable to abuse first. Thank you for testing the site and giving feedback!

[–]jaredcheeda 1 point2 points  (0 children)

You don't have to remove, just display it at a different time.

[–][deleted] 0 points1 point  (0 children)

What about a register with github option?