+ 13

User input on SoloLearn anoys me...

I think is time for SoloLearn to change this, it asks for our input at the beggining of the program, making things like validating user input impossible, while working with loops. https://code.sololearn.com/cMrcLsLiDK7i/?ref=app

14th Oct 2018, 10:07 PM
Denomycor
Denomycor - avatar
8 ответов
+ 8
Yeah, that's really annoying. When you make a code for an assignment, often you are asked to 'take user input', but you can never do that properly because you can't interact or communicate with the user, you can't do error-handling - nothing. Usually to prevent a crash, the user has to input data in a very specific way. How to tell the user? You can write it in the code as a comment, or you leave a comment outside. But really, if anyone accidentally stops at your code, will he/she first search for instructions, figure out how to prevent an error and check the program? Rarely. People just want to hit run and see stuff happen. Like this, every non-web code is immediately at a disadvantage, and I'm not even talking about graphics. I have stopped to use input completely here on sololearn. Instead I let people input data directly in the code. It's not optimal, but at least the user has some control; when the input is faulty, he/she doesn't have to start over but can just correct the data in the code.
15th Oct 2018, 8:42 AM
HonFu
HonFu - avatar
+ 4
HonFu I agree with you!! When someone creates a code with asking user's input, the creator should give instructions or what question has been asked in the code as a comment at the first of that code!! In this way, the user can be aware of entering input!!!
15th Oct 2018, 9:03 AM
AL Araf
AL Araf - avatar
+ 3
I don't think that's possible. Keep in mind when you run a SoloLearn code, it runs on someone else's PC. So you can't see the output in real time. You'll probably get a time limit exceed instead of what you would expect. Dcoder also has the same issue.
14th Oct 2018, 11:05 PM
qwerty
qwerty - avatar
+ 3
Ice Cream Without cream sandwhich without bread is that possible? you need bread to make delicious sandwich and you also need cream to make delicious ice cream same with that... no more good code without input😉
15th Oct 2018, 12:45 PM
Jingga Sona
Jingga Sona - avatar
+ 2
I, along with many, compained about a non-interactive console. John actually wrote some code and I've suggested that SL hardcode something tiny akin to busybox into the SL app (so compiled code is returned and run client-side -- on your phone/tablet). Sadly SL don't seem to want to budge. So that's just life. If C/C++/Java/Python codes got the attention of web codes, the status quo may change. But that's unlikely.
14th Oct 2018, 11:47 PM
non
+ 2
It also annoys me when I go to enter a input!! Without knowing the question, how can I enter the particular answer??😵😵
15th Oct 2018, 1:28 AM
AL Araf
AL Araf - avatar
0
that's because the code runs on sololearn's server (except of html), but they can yield thread and wait for external input... you can do your own code runner as a html site, since it has got no problems with running externally
16th Oct 2018, 1:17 PM
jaivar
jaivar - avatar
0
yeah user input sucks but if u r doing C++ click getting the tools to start and u can do it
8th Sep 2019, 7:23 PM
Graham
Graham - avatar