Ragdoll X@sh.itjust.works to Programmer Humor@programming.dev · 20 days agoPython vs. Javash.itjust.worksvideomessage-square28linkfedilinkarrow-up15arrow-down10
arrow-up15arrow-down1videoPython vs. Javash.itjust.worksRagdoll X@sh.itjust.works to Programmer Humor@programming.dev · 20 days agomessage-square28linkfedilink
minus-squarethenextguy@lemmy.worldlinkfedilinkarrow-up2·edit-220 days agoActually… since around Java 21, it’s just void main() { println("Hello World"); } https://blog.jetbrains.com/idea/2024/02/helloworld-and-main-meet-minimalistic/#class-‘helloworld-before-and-after-java-21
minus-squareSolemarc@lemmy.worldlinkfedilinkarrow-up1·20 days agoI vaguely remember hearing this this was only really available for toy code and that this function created the class ignored the arguments and qualified println when you compiled it, so it wasn’t actually that useful?
minus-squarebigboismith@lemmy.worldlinkfedilinkarrow-up0·20 days agoPrinting to console is often only used for toy code anyway.
minus-squaresilasmariner@programming.devlinkfedilinkarrow-up1·20 days agoWait, how do you debug your code?
minus-squaresilasmariner@programming.devlinkfedilinkarrow-up1·8 days agoGuess you could do that, seems like a pain though
minus-squareJADEx@programming.devlinkfedilinkarrow-up1·12 days agoIn more detail, this feature was included as a preview in Java 21 and officially adopted in Java 25.
Actually… since around Java 21, it’s just
https://blog.jetbrains.com/idea/2024/02/helloworld-and-main-meet-minimalistic/#class-‘helloworld-before-and-after-java-21
I vaguely remember hearing this this was only really available for toy code and that this function created the class ignored the arguments and qualified println when you compiled it, so it wasn’t actually that useful?
Printing to console is often only used for toy code anyway.
Wait, how do you debug your code?
Using a debugger?
Guess you could do that, seems like a pain though
???
… with a debugger
Meh
In more detail, this feature was included as a preview in Java 21 and officially adopted in Java 25.