3 ms·
I just tried repl.it. I don't like it, but am impressed you have access to a shell (ubuntu, bash). I tried to delete Main.java, and it won't let you. Fine, so
by Rairden 6y ago
I just tried repl.it. I don't like it, but am impressed you have access to a shell (ubuntu, bash).
I tried to delete Main.java, and it won't let you. Fine, so I just erase the whole text file. Then, I place two separate folders w/ src code in them. Code compiles fine, but still prints out "Hello, world!".
Buggy. If you use Main.java, you can still have several packages and it all works, but I don't like that. What I might do is erase Main.java, then you're forced to manually run your program from their bash shell ($ java MyClass). And then it works fine.
I also don't like they're on openJDK 11. All the nice stuff is in 12-14 (text blocks, switch expressions).
- amasad 6y agoHey, we don't let you delete Main.java because Repl.it is all about having sensible defaults, loading really quick, and not being overly fussy and configurable and allow for everything under the sun. However, we do have some configuration hooks -- the run command is bound to an entrypoint (in this case Main.java). If you want to configure it, you can do so: https://docs.repl.it/repls/dot-replit https://docs.repl.it/repls/dot-replit Finally, we're a bit conservative with language versions but will probably upgrade Java soon :)
- divbzero 6y agoAre there online dev environments out there that treat shell as the first-class citizen? Where the initial screen is just a command prompt a la Linux without a desktop environment or Windows 3.1 era MS-DOS? $
- amasad 6y agohttps://repl.it/languages/bash https://repl.it/languages/bash
- onefuncman 6y agoWe just call this a shell account. Putting a terminal in a web browser is usually a massive downgrade.