ElCanut@jlai.lu to Programmer Humor@programming.dev · 2 months agoDifferent philosophiesjlai.luexternal-linkmessage-square40fedilinkarrow-up147arrow-down10
arrow-up147arrow-down1external-linkDifferent philosophiesjlai.luElCanut@jlai.lu to Programmer Humor@programming.dev · 2 months agomessage-square40fedilink
minus-squaremlg@lemmy.worldlinkfedilinkEnglisharrow-up5·2 months agoHey at least it’s not JavaScript which is perpetually high on crack with Object object
minus-squarebleistift2@sopuli.xyzlinkfedilinkEnglisharrow-up2·2 months agoWell, that happens when you don’t override the toString method. Not worse than Java’s 0xf00cu
minus-squareanton@lemmy.blahaj.zonelinkfedilinkarrow-up1·1 month agoHey, javas default toString gives you two informations: type, not that the class names in many java projects are informative identity, while the pointers are gibberish you can see if they are the same gibberish
Hey at least it’s not JavaScript which is perpetually high on crack with Object object
1 + 1 = “11”.
[] + [] = “”
Wat.
Well, that happens when you don’t override the
toString
method. Not worse than Java’s 0xf00cuHey, javas default toString gives you two informations: