Ragdoll X@sh.itjust.works to Programmer Humor@programming.dev · 4 days agoPython vs. Javash.itjust.worksvideomessage-square37linkfedilinkarrow-up1158
arrow-up1158videoPython vs. Javash.itjust.worksRagdoll X@sh.itjust.works to Programmer Humor@programming.dev · 4 days agomessage-square37linkfedilink
minus-squarethenextguy@lemmy.worldlinkfedilinkarrow-up41·edit-24 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-up9·4 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-up5·4 days agoPrinting to console is often only used for toy code anyway.
minus-squaresilasmariner@programming.devlinkfedilinkarrow-up5·4 days agoWait, how do you debug your code?
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?
… with a debugger