For PC gaming news and discussion.
PCGamingWiki
Rules:
- Be Respectful.
- No Spam or Porn.
- No Advertising.
- No Memes.
- No Tech Support.
- No questions about buying/building computers.
- No game suggestions, friend requests, surveys, or begging.
- No Let’s Plays, streams, highlight reels/montages, random videos or shorts.
- No off-topic posts/comments, within reason.
- 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.)
- 1 user online
- 136 users / day
- 400 users / week
- 937 users / month
- 3.09K users / 6 months
- 1 subscriber
- 4.59K Posts
- 29.9K Comments
- Modlog
As a C++ programmer myself, this was pretty interesting to see.
God damn, my controllers look and function like shit compared to that snippet in the image.
You know what got me? The consistent inline comments. That’s was so nice to see.
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