430
average c++ dev (programming.dev)

I don't think that casting a range of bits as some other arbitrary type "is a bug nobody sees coming".

C++ compilers also warn you that this is likely an issue and will fail to compile if configured to do so. But it will let you do it if you really want to.

That's why I love C++

you are viewing a single comment's thread
view the rest of the comments
[-] BigDanishGuy@sh.itjust.works 25 points 6 days ago

But it will let you do it if you really want to.

Now, I've seen this a couple of times in this post. The idea that the compiler will let you do anything is so bizarre to me. It's not a matter of being allowed by the software to do anything. The software will do what you goddamn tell it to do, or it gets replaced.

WE'RE the humans, we're not asking some silicon diodes for permission. What the actual fuck?!? We created the fucking thing to do our bidding, and now we're all oh pwueez mr computer sir, may I have another ADC EAX, R13? FUCK THAT! Either the computer performs like the tool it is, or it goes the way of broken hammers and lawnmowers!

[-] BuboScandiacus@mander.xyz 19 points 6 days ago

Ok gramps now take your meds and off you go to the retirement home

[-] BigDanishGuy@sh.itjust.works 5 points 6 days ago

Stupid cloud, who's laughing now?

load more comments (10 replies)
this post was submitted on 22 Jul 2025
430 points (98.2% liked)

Programmer Humor

25328 readers
1065 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