this post was submitted on 08 Jun 2026
547 points (94.5% liked)

Programmer Humor

31770 readers
142 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 3 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] MrNesser@lemmy.world 29 points 2 days ago (1 children)

Didn't expect to see the Drift King here

[–] Jumi@lemmy.world 9 points 2 days ago* (last edited 1 day ago)

Drift King? You mean Dan the Villian

[–] lime@feddit.nu 105 points 3 days ago

they used to call him the deref king back in college

[–] lian_drake@lemmy.world 70 points 3 days ago (10 children)
[–] ZILtoid1991@lemmy.world 6 points 2 days ago

Null termination is no longer recommended, use fat pointers instead!

load more comments (9 replies)
[–] NullPointerException@lemmy.ca 65 points 3 days ago (4 children)

Wait. It’s been a long time but shouldn’t be int*** -> int** -> int* -> int ?

[–] Susaga@sh.itjust.works 84 points 3 days ago (2 children)

I think int*** is meant to be pointing at int**, but the image is just unclear about where everything is in perspective.

[–] dohpaz42@lemmy.world 28 points 3 days ago (8 children)

Pretty sure the image is clear:

int*** -> int*
int** -> int
Int* -> int

Clarity doesn’t mean correct. But that’s probably why it’s posted here. 🤷‍♂️

[–] Susaga@sh.itjust.works 8 points 2 days ago (1 children)

RT*** isn't pointing at RT*, he's pointing at the TV showing RT**. The fact you think otherwise is what makes the image unclear. I'm not sure why you insist on them being wrong.

[–] _tasten_tiger@feddit.org 0 points 12 hours ago

But that doesn't hold up, because RT** isn't pointing at a TV containing RT* only RT*** is pointing at an TV containing RT** RT* and RT

int** is inside a TV, and persumably int* must be inside another TV(even though uts not edited in). The image perespective is showing one thing inside the other, inside the other. So when when int*** points the TV it reference int**, which reference int* which reference int. Its just edited very bad

load more comments (6 replies)
[–] obviouspornalt@fedinsfw.app 15 points 3 days ago

I mean, that's pretty much what happens to me every time I try to use pointers, so the meme checks out.

load more comments (2 replies)
[–] HeyThisIsntTheYMCA@lemmy.world 3 points 1 day ago (1 children)

Uh I'm a charisma class (with unfortunate base stats) what's int

[–] zerofk@lemmy.zip 3 points 1 day ago

It’s what makes mages turn those squiggly lines on paper into fireballs.

Not clerics though, they’re different.

[–] DrCake@lemmy.world 41 points 3 days ago (1 children)

Rumble Tumble Games in the wild

Seeing him break containment is wild

[–] refalo@programming.dev 4 points 2 days ago

that's not LaurieWired

[–] dangrousperson@feddit.org 11 points 2 days ago

as a python script kiddie, this is way over my head, but upvoted because of RT Game

[–] Quibblekrust@thelemmy.club 4 points 2 days ago (1 children)

Am I a computer scientist now?

load more comments (1 replies)
[–] MonkderVierte@lemmy.zip 8 points 2 days ago* (last edited 2 days ago) (3 children)

So, googling it, the general premise is you should use smart pointers instead to avoid crashes. Got it.

Uh

I think I'll just let the cat drive instead

[–] DahGangalang@infosec.pub 10 points 2 days ago (1 children)

Smart pointers implies C++, which is not the right answer.

[–] MonkderVierte@lemmy.zip 6 points 2 days ago (1 children)

Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a well-written C++ book. It is way too big and complex for doing this. In fact, it is so big and complex, that there are very many very bad C++ books out there. And we are not talking about bad style, but things like sporting glaringly obvious factual errors and promoting abysmally bad programming styles.

https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list

[–] mnemonicmonkeys@sh.itjust.works 6 points 2 days ago* (last edited 2 days ago)

Considering that most of the "answers" I've found on StackOverflow were complete dogshit, I'm wary of this reading list

[–] CanadaPlus@lemmy.sdf.org 4 points 2 days ago* (last edited 2 days ago) (1 children)

They all have footguns that cause different crashes.

If you want to do explicit memory access without inevitable safety problems, you need Rust. That's the whole hype with Rust.

[–] MonkderVierte@lemmy.zip 1 points 1 day ago* (last edited 1 day ago) (1 children)

But... per-process-isolation is a hardware feature, no?

[–] CanadaPlus@lemmy.sdf.org 2 points 1 day ago* (last edited 1 day ago)

Sure, that may be (it's definitely not in userspace). But don't forget it works by crashing your program.

load more comments
view more: next ›