Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include in website a Try Java section <niceToHave> #112

Open
cesarhernandezgt opened this issue Jan 11, 2023 · 6 comments
Open

Include in website a Try Java section <niceToHave> #112

cesarhernandezgt opened this issue Jan 11, 2023 · 6 comments

Comments

@cesarhernandezgt
Copy link

It would be nice to have a section like "Try Java" or "Run Java" or some sort of equivalence to the embedded https://www.python.org/

image

@cesarhernandezgt
Copy link
Author

The last interactive shell with embeddable options I tried a couple of years ago was katakoda, but it no longer exists.

Looking at jdoodle, the downside I see is that user can't edit the code when you use the embedded option.

I spined a draft PR using onecompiler via #113 for the overall structure. In case we don't have a preview site for PR's, the overall result is this.:

image

@aalmiray
Copy link
Owner

@cesarhernandezgt I'd suggest discussing the pros and cons at the mailing list first, as the use of this 3rd party website could be seen as a tacit endorsement by the Java Champions group. if that's the case then we'd have to agree on it first.

Also, the System class is in the java.lang package, not java.util. The use of star imports is good for getting started but frowned upon later. I'm sure we'll have many opinions on how the prototypical HelloWorld code should look like for beginners. I'd personal defer to those that teach Java to help us with their advice.

@cesarhernandezgt
Copy link
Author

@aalmiray I agree with you, I just picked the second google result on "online Java compiler".
Rather than implementation, the question is if there is an opportunity the website can take to offer to users a Try Java section.

@cesarhernandezgt
Copy link
Author

I updated the PR draft to remove text details and left the vanilla hello world code that, out of the box, still has the include line, but as mentioned before, details on the implementation can be tackled later if the Try Java sections reach consensus.

image

@BrayanMnz
Copy link

Why not add a link to https://dev.java/playground/ ?
@cesarhernandezgt

@aalmiray
Copy link
Owner

@BrayanMnz see comment at #112 (comment)

External links must first be discussed among JCs before any additions are made here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants