r/javascript • u/memystic • Apr 30 '18
I made this free tool for practicing JavaScript (it's like Duolingo for learning to code)
https://edabit.com/explore5
u/baalzaamon Apr 30 '18
This seems really cool. 2 points of feedback:
The challenge on the left is really slow to load (3 seconds at least) .
Please let me enter some code and tinker around without registering. I expect to be able to type in code on the right but only see the protip
1
u/memystic Apr 30 '18
You can tinker without registering. Click on the “Code” tab. The ProTip area is the Console where test case output is displayed.
2
u/baalzaamon Apr 30 '18
Ah interesting. Not what I expected. I'd love to have the code console side by side with the instructions. Either top/bottom or side by side. Great work!
14
13
u/asterisk_man Apr 30 '18
I think you should be able to see the instructions and your code at the same time without having to flip between tabs.
4
4
u/slowtraincar Apr 30 '18
This is cool! Not gonna lie, definitely submitted a wrong answer a couple times in a row because I thought the sound was awesome. Great job!
1
u/backAtTheWheel Apr 30 '18
hello! nice work. You should let users change their username after they connect with their Gmail account. Have a good day!
3
u/memystic Apr 30 '18
Yup, already on the roadmap!
1
u/backAtTheWheel May 01 '18 edited May 01 '18
By the way! I have been on your site all night and there seems to be a bug whereby if a user submits code that contains a
console.log()statement, some of their lines won't appear in the Solutions page. That is a very big problem when users sort by shortest code, because then the code may appear as shortest even when it shouldn't. So it happened to me twice, the first time by mistake and the second to prove there was a bug. Here you go: my Solution appears as the shortest one in both these cases, and it shouldn't. As you can see, there is code missing here...
https://edabit.com/challenge/nHaKL55KwW3XaGrAw -- how to reproduce: write a one-liner solution and write a console.log statement right before your code. For example:
const isValidPhoneNumber=s=>{console.log('hey'); /^[\(\d\)]{5}\s[\d-]{8}$/.test(s)}, then submit. Code disappears.And here is a 3rd case where code is obviously missing from a solution, though I'm not sure it is for the same reason: https://edabit.com/challenge/nQtiQCoqM6rxWpZmC
1
u/johnwick76 May 01 '18 edited May 01 '18
Cool, this is quite good!
Some suggestions though, looks like there's too many resources loading at once, thus slowing down the site.
The code editor's cursor is somewhat strange as it does not point to the right character, it gives a hard time if I have to edit something.
Also, on submission, I feel like the evaluation could be sped up.
**EDIT: ** The editor pointer problem is only on Chrome and Edge, no issues on FF
1
u/memystic May 01 '18
What do you mean the "pointer problem"? I'm using Opera and Chrome (for macOS) without any issues on my end. A screenshot would definitely help!
Cheers!
2
2
2
1
1
u/bbcjs Apr 30 '18
probably want to change the text colors as they are sometimes hard to read. if I write "return true" the word true is this really light orange that doesn't work well with the background.
oteher than that, impressive!
1
1
1
1
1
1
u/uno_wildcard May 01 '18
Thank you for the free tool. I’m digging it. It is really intuitive and interactive despite being unsupported for mobile use. Away from computer at this time, but I will report back after computer trial is under way.
Edit: try “SoloLearn” app/site
1
1
1
u/mattshoaf May 01 '18 edited May 01 '18
This is really cool, only suggestion I have is that you should be able to view other solutions without penalty after submitting a correct one. You know, to check and see how others thought about the problem, if there's a more concise answer than what I gave, etc. Overall, great job!
edit: nevermind, finally saw the see solutions button after you submitting an answer :D
edit2: you probably already know this, but using the browser navigation back button breaks the app until you reload the page. This was in Chrome that I notice that.
1
-1
u/LBBOLBBO Apr 30 '18
As a regular user of codewars, does this have anything codewars doesn't? (Such as code-completion)
-11
u/Rizens Apr 30 '18
Javascript really ? Not algorithm ?
Am I the only one to think that it's a terrible idea for beginners / coders to learn JS has a first language ?
6
u/memystic Apr 30 '18 edited May 01 '18
The website also supports C#, C++, Java, PHP, Python, Ruby and Swift. JavaScript is a fantastic first language.
2
3
0
Apr 30 '18
[deleted]
3
u/memystic Apr 30 '18 edited Apr 30 '18
Edabit is meant to be browsable on mobile but not usable. As a matter of fact, creating a mobile app is something I've thought about quite a bit, and I really can't get past the following two obstacles:
Programming without a physical keyboard is very challenging (expecting users to have a bluetooth keyboard is not realistic).
Fitting everything onto a small screen while still being intuitive is next to impossible (I've tried).
I'm kind of a perfectionist and I know that creating a mobile version of Edabit won't be anywhere near what I would consider acceptable. That being said, if anyone has any ideas/thoughts regarding the above two obstacles, please feel free to chime in!
1
u/trianuddah May 01 '18
I faced a similar challenge to 1 with a language learning app I wrote for my school. In my case it's where a question requires a sentence for an answer, some lower ability students can't begin to form a sentence let alone type at a sane speed even on a desktop keyboard.
What I do is keep records of all answers submitted - we have to do this anyway to manually mark the sentences. In the marking interface, the teacher flags it correct or incorrect. They can also flag it as a model answer whether it's correct or not.
For students at lower ability levels, the question comes up in multiple choice format using model answers submitted by other students.
0
May 01 '18
[deleted]
1
u/CommonMisspellingBot May 01 '18
Hey, dessydes, just a quick heads-up:
alot is actually spelled a lot. You can remember it by it is one lot, 'a lot'.
Have a nice day!The parent commenter can reply with 'delete' to delete this comment.
0
May 01 '18
[deleted]
2
u/memystic May 01 '18
Ok yeah, I wrote that challenge. I’m not American and I don’t even remotely care about politics; the subject was on my mind because Trump was just elected at the time and I wanted to make the challenge more interesting. It’s supposed to be taken tongue in cheek, as a light hearted joke. Obviously I was wrong on that point and I will change it to something less offensive. I don’t care about politics, he just said some crazy shit and I wanted to poke fun at it. I don’t LITERALLY think the guy should be silenced.
9
u/centuryeyes Apr 30 '18
looks great! is this a PWA?