+ 2
Why does sololearn have a good service only at web coding?
Sololearn doesn't have a good performance at languages like java or c# for example it gets the input before running the program. Or it doesn't support opening a window on the screen that is used with JOptionPane in java. Here is a program that runs perfectly on IDE programs: https://code.sololearn.com/cmaP8lEIf2kP/?ref=app
3 Answers
+ 6
What more is there to it that you want? Elaborate and I'll assist however I can.
You're executing code from a restricted compiler on a remote server via a website. Even if they didn't intentionally restrict what it can/cannot do, for the sake of security, there are things you wouldn't be able to do via those means with many languages even if you wanted to.
When you're using your IDE, you're building your code and executing it via your local resources (computer/OS/etc..) As such, you're only as restricted as you make yourself or other software/hardware makes you. When you're on the web, we have to play by different rules.
As for your concern over input, it's simply being compiled on the server and the output displayed to you. You're not actually interacting with the program that you created; that is why you must supply the input prior to running it. You're submitting input for it to use later since you can't dynamically supply such input to it after execution. Again, it's running on the server, not your computer; you're simply receiving the output.
+ 5
Because this is a public website that allows anyone from around the world to both view, edit, and execute code via their Code Playground. As such, this is a huge security implication for both the server and for all of the clients on this website. Because of that, it's necessary to severely regulate the type of code that is allowed to be executed via their server. Imagine if I was allowed to post keyloggers/viruses/etc... to the Code Playground and then post up a link here & told you guys to check out my program. As you can imagine, these security measures are necessary in order for us to protect everyone that's using this website, as well as the website itself.
Hope that explains it.
TLDR; - security reasons you can't allow just any code to be executed on a public website.
+ 2
Your answer was helpful enough but still not I exactly wanted.