Ragdoll X@sh.itjust.works to Programmer Humor@programming.dev · 4 months agoPython vs. Javash.itjust.worksvideomessage-square16fedilinkarrow-up12arrow-down10
arrow-up12arrow-down1videoPython vs. Javash.itjust.worksRagdoll X@sh.itjust.works to Programmer Humor@programming.dev · 4 months agomessage-square16fedilink
minus-squarethenextguy@lemmy.worldlinkfedilinkarrow-up0·edit-24 months 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-up0·4 months 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·4 months agoPrinting to console is often only used for toy code anyway.
minus-squaresilasmariner@programming.devlinkfedilinkarrow-up0·4 months agoWait, how do you debug your code?
minus-squaresilasmariner@programming.devlinkfedilinkarrow-up1·4 months agoGuess you could do that, seems like a pain though
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