this post was submitted on 18 Dec 2024
44 points (100.0% liked)

PC Gaming

8760 readers
651 users here now

For PC gaming news and discussion. PCGamingWiki

Rules:

  1. Be Respectful.
  2. No Spam or Porn.
  3. No Advertising.
  4. No Memes.
  5. No Tech Support.
  6. No questions about buying/building computers.
  7. No game suggestions, friend requests, surveys, or begging.
  8. No Let's Plays, streams, highlight reels/montages, random videos or shorts.
  9. No off-topic posts/comments, within reason.
  10. Use the original source, no clickbait titles, no duplicates. (Submissions should be from the original source if possible, unless from paywalled or non-english sources. If the title is clickbait or lacks context you may lightly edit the title.)

founded 2 years ago
MODERATORS
top 4 comments
sorted by: hot top controversial new old
[–] peoplebeproblems@midwest.social 6 points 2 hours ago* (last edited 2 hours ago)

I'm so glad he pointed out the compiler optimizing the If statements. A lot of coworkers seem to forget that the compiler is doing a lot of that work for us now, and some of the code becomes unreadable as they try to make it "more efficient."

Bro, stop, you can't beat a machine at machine stuff

[–] Sanctus@lemmy.world 5 points 5 hours ago (1 children)

God damn, my controllers look and function like shit compared to that snippet in the image.

[–] inclementimmigrant@lemmy.world 4 points 3 hours ago

You know what got me? The consistent inline comments. That's was so nice to see.

[–] inclementimmigrant@lemmy.world 7 points 7 hours ago

As a C++ programmer myself, this was pretty interesting to see.