java-champions icon indicating copy to clipboard operation
java-champions copied to clipboard

Include in website a Try Java section <niceToHave>

Open cesarhernandezgt opened this issue 2 years ago • 6 comments

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 avatar Jan 11 '23 15:01 cesarhernandezgt

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 https://github.com/aalmiray/java-champions/pull/113 for the overall structure. In case we don't have a preview site for PR's, the overall result is this.:

image

cesarhernandezgt avatar Jan 11 '23 17:01 cesarhernandezgt

@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.

aalmiray avatar Jan 11 '23 17:01 aalmiray

@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 avatar Jan 11 '23 18:01 cesarhernandezgt

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

cesarhernandezgt avatar Jan 11 '23 18:01 cesarhernandezgt

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

BrayanMnz avatar Nov 28 '23 17:11 BrayanMnz

@BrayanMnz see comment at https://github.com/aalmiray/java-champions/issues/112#issuecomment-1379247371

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

aalmiray avatar Nov 28 '23 17:11 aalmiray