this post was submitted on 16 Mar 2025
22 points (100.0% liked)

Programmer Humor

21872 readers
339 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
22
C++ (ani.social)
submitted 1 week ago* (last edited 1 week ago) by kiri@ani.social to c/programmer_humor@programming.dev
 
you are viewing a single comment's thread
view the rest of the comments
[–] LaggyKar@programming.dev 2 points 1 week ago (3 children)

This is something that Rust is specifically designed to prevent.

[–] Lemmist@lemm.ee 0 points 1 week ago (1 children)

Prevent what? UNDERSTANDING the code?

Yeah, Rust is quite successful in that :)

[–] kiri@ani.social 1 points 1 week ago (1 children)
[–] Lemmist@lemm.ee -1 points 1 week ago (1 children)

That's a rather old joke. Modern compilers print more adequate things on STL/templates related things.

And it doesn't make Rust any better.

[–] kiri@ani.social 1 points 1 week ago

Yeah, I know, that all just a humour. I almost always use C++, inspite of knowing rust (cz no jun vacncies for rust, but still). There is no modern language which is absolutely better than other one — compromises are everywhere, that's why it's a silly topic to argue about.

[–] CanadaPlus@lemmy.sdf.org 0 points 1 week ago

C/C++ is mildly obsolete now, basically. Breaking the memory model is not really a small defect that's a matter of taste.

[–] kiri@ani.social 0 points 1 week ago (1 children)

There are C++ analyzers like this which are also designed to prevent it (if you have no choice between languages).

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

I've seen things like this posted several times on here. It always turns out it doesn't actually catch all the possible problems, or it's garbage collected, or it's non-usable for real code.

If it was that easy, the people who wrote Rust with all it's complexity and divergence from the norm were idiots, and I really don't think they were.