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

PC Gaming

8770 readers
213 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
[–] [email protected] 13 points 4 days ago* (last edited 4 days 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

[–] [email protected] 8 points 4 days ago (1 children)

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

[–] [email protected] 7 points 4 days ago

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

[–] [email protected] 8 points 4 days ago

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