this post was submitted on 14 Mar 2024
5 points (100.0% liked)

Programmer Humor

31317 readers
1363 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
 
top 14 comments
sorted by: hot top controversial new old
[–] CosmicCleric@lemmy.world 2 points 2 years ago

"What Java said."

Okay, that one made me chuckle.

[–] muzzle@lemm.ee 1 points 2 years ago* (last edited 2 years ago) (2 children)

Rust is more like: unless you can mathematically prove to me that this is equivalent to a nut there is no ducking way I'll ever let you compiled this.

[–] CanadaPlus@lemmy.sdf.org 2 points 2 years ago

And hot take, but that's good. I'm absolutely stupid enough for idiot gloves like that.

[–] ryannathans@aussie.zone 0 points 2 years ago* (last edited 2 years ago) (1 children)
[–] EinfachUnersetzlich@lemm.ee 1 points 2 years ago (1 children)

If you can make safe Rust segfault you're doing something wrong.

[–] xlash123@sh.itjust.works 1 points 2 years ago

It actually is possible to segfault in safe Rust, although it is considered a bug. Proofs of concept are shown in this cve-rs crate.

If you want an explanation of why this happens, I recommend this video: https://youtu.be/vfMpIsJwpjU

[–] bruhduh@lemmy.world 1 points 2 years ago* (last edited 2 years ago)

C can STRUCTurise classes tho

[–] AVincentInSpace@pawb.social 1 points 2 years ago (1 children)

Java: "Sorry, but the developers of Peanut didn't declare it to implement the Crackable interface, even though it has all the relevant methods, so if you want to treat it like a nut your choices are write a wrapper class or call those methods using Reflections"

[–] sjmarf@sh.itjust.works 1 points 2 years ago (1 children)

Swift’s extensions system has spoiled me, and I feel the pain of this whenever I have to write Java

[–] loutr@sh.itjust.works 1 points 2 years ago

You should take a look at kotlin, pretty similar to swift and fully interoperable with java.

[–] pewgar_seemsimandroid@lemmy.blahaj.zone 0 points 2 years ago (1 children)

It's incompatible with the version of this meme

[–] ArbitraryValue@sh.itjust.works 0 points 2 years ago* (last edited 2 years ago) (1 children)

I am static_casting the nut_t*. Pray I don't static_cast it any further.

[–] corroded@lemmy.world 1 points 2 years ago

reinterpret_cast<int*>(&a_nut)

I like to live dangerously.