145
Accidental shitpost (lemmy.world)
top 16 comments
sorted by: hot top controversial new old
[-] ImgurRefugee114@reddthat.com 84 points 5 days ago

The joke is even funnier on my client

[-] ChaoticNeutralCzech@feddit.org 15 points 5 days ago

Yes, it blends in with Voyager's UI because it's a screenshot of Voyager's UI.

[-] flamingo_pinyata@sopuli.xyz 21 points 5 days ago

You're using Java, there's your problem

[-] LodeMike@lemmy.today 8 points 5 days ago

This syntax isn't actually a problem by itself. Go does this too (no operator overloading)

[-] Gremour@lemmy.world 4 points 5 days ago* (last edited 5 days ago)

In Go you can compare structure instances with == (by value). You can also compare pointers (in which case they can be different even if values are equal). You get what you ask for.

Also, I've never needed "Equals" method in Go.

[-] LodeMike@lemmy.today 5 points 4 days ago

I think you can also == two structs in Java, but not classes.

[-] bleistift2@sopuli.xyz 10 points 5 days ago

Is there ever an instance when you do want to compare object identity instead of “equal”-ness? I find this behaviour just confusing for beginners and not useful for experts.

[-] anton 1 points 3 days ago

Is there ever an instance when you do want to compare object identity instead of “equal”-ness?

Maybe if you have to check if the object is one you already hold a lock for or account for some similar consequence of questionable architecture.

[-] Redkey@programming.dev 3 points 4 days ago

Not to take away from your very good point, but I think the word you might be looking for is "eqivalence".

[-] expr@programming.dev 5 points 4 days ago

99.99% of the time you want to compare by value, which is why languages defaulting to comparing by reference is a stupid default.

[-] NeatNit@discuss.tchncs.de 4 points 5 days ago

Where's the original post?

[-] ZILtoid1991@lemmy.world 8 points 5 days ago

No longer on the internet, due to the OP's instance is now defunct.

[-] yaroto98@lemmy.world 5 points 5 days ago
[-] ChaoticNeutralCzech@feddit.org 6 points 5 days ago

OP's website makmarian.com still works despite all the == usage

[-] ChaoticNeutralCzech@feddit.org 3 points 5 days ago

Not really true, instances that were around to federate with kbin.social have a copy, even a preview image (see my other comment).

this post was submitted on 20 Oct 2025
145 points (100.0% liked)

Programmer Humor

27029 readers
602 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS