+ 1
Compiler Needs Fixed [Mobile]
Mobile compiler is not the best. I've never used Solo on PC so I can't speak for that - But it is VERY limiting to rely on user input being handled in 1 go at runtime and line by line.. I shouldn't have to memorize everywhere I need to input something to run my code. Why doesn't it execute and ask for use input in real time? Why do I have to input every line of input at the beginning? This app has so much potential but other mobile ide's / compilers seem to get this. Why cant we have that also? Also makes it VERY hard to use other peoples code they posted if they do not comment out every user input you need to provide and what it does..
7 odpowiedzi
+ 5
I would guess the implementation is not a problem for the devs, they can do it, but there is another consideration.
The benefit of getting all input ahead of time is network traffic efficiency, all data needed (apart from code) only needs to be sent once for server to be processed.
Contrary, if input is read on-demand, then network traffic will increase because code is sent, but input data follows later. This means extra workload for servers, because connection is opened and closed multiple times. For sending inputs.
You can then multiply that by the thousands when many users are running their code, almost simultaneously.
Even with the current input scheme there are times when SoloLearn servers are overwhelmed, you must have experienced failure to send something or saving code once a while. Can you imagine what can happen if interactive input is enabled?
In summary, when you need interactivity, run your code in a real device, not a virtual one.
+ 2
Zezima sololearn codeplayground is work like an sandbox in which input are taken at server and execute their and respond back to so you have to give all input prior to the execution. It's the limitations of the codeplayground.
https://www.sololearn.com/Discuss/711295/?ref=app
+ 2
Zezima
If it was that much a problem for you, then of course you have the freedom to use other online compilers (you mentioned). Even better if you do it in a real compiler or full-blown IDE.
We all know the scope of SoloLearn is for beginners. Although there are experienced and professionals here, it is expected that codes executed here are small codes, used for learning, not big codes (you mentioned 2000 lines project). In relation to the scope, what SoloLearn provides is relatively enough (accordingly to the courses materials).
Finally, you can also try to suggest this to SoloLearn, including maybe details on what solution can be implemented to replace the silly and rushed idea. The devs aren't watching the forum, so your suggestion is kinda be in a wrong place, being posted here in Q&A forum.
+ 1
I understand that, but I don't understand why they've decided to implement it in that way. 3 years ago when I got this app, I disregarded that feature because I was fairly new to it. But 3 years later and still no standalone compiler on the front end. User input is a huge HUGE implementation most programs require. You can only write so many "input this number and a number to multiply it by!" codes. Its limiting. Solo learn isn't provoking much learning when features are so limited. I want to share all sorts of console projects and rpg mechanics and all sorts of stuff, but I cant do that if the user has to magically know every input sequence in a 2000 line project.
Is there any movement or roadmap to change this? This is the reason I stopped using this app. So many other compilers that dont have this annoying feature. But id like to use solo because of the community.
+ 1
Ipang I think that is a problem that could be addressed fairly easily for a team the size of Sololearn. Take a look at things like repl.it, or dotnetfiddle. They shouldn't be relying on a backend server compiler for EVERY user on here, seems silly and like a rushed idea that has been forgotten about. I understand network congestion is a factor here, but having a different solution for compilers would eliminate that almost completely. I just dont understand how or why anyone would use this other than solving algorithmic problems.
+ 1
I think you're missing the point. And, mobile phones are absolutely capable of handling thousands of lines of code and complicated input. I have several that do just that. Unfortunately, there is no community behind them. Requesting the functionality to handle rt compiling shouldnt be out of the question.