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
- 43 users / day
- 284 users / week
- 866 users / month
- 3.29K users / 6 months
- 1 subscriber
- 5.93K Posts
- 41.3K 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