this post was submitted on 13 Dec 2025
629 points (97.6% liked)

Programmer Humor

27913 readers
2210 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
you are viewing a single comment's thread
view the rest of the comments
[–] Hirom@beehaw.org 31 points 5 days ago (7 children)

The compiler will optimize it anyway. /s

[–] Dumhuvud@programming.dev 17 points 5 days ago* (last edited 5 days ago) (1 children)

You jest, but you aren't wrong. At least if we are talking about C, C++ or Rust. https://godbolt.org/z/oPPfdfcf5

.NET compiler is weak when it comes to optimizing your code; I assume Go's is as bad.

[–] yggstyle@lemmy.world 4 points 5 days ago

Technically yes... But I think he was more making the excuse for the gore "from the goresmith's perspective."

And I'm not sure if the compiler in any language would change a random check function... The others are a possibility.

load more comments (5 replies)