Best of C++ — December 2024
- 1
- 2
Game Developers·1y
Math in programming...
The author shares their newfound realization about the importance of math in programming, particularly in the context of game development. They provide a C++ code snippet demonstrating the use of mathematics to animate a platform in a game by adjusting its position using trigonometric functions.
- 3
LaurieWired·1y
Santa gave me a concurrency problem for Christmas...
The Santa Claus problem, created by John Trono in 1994, illustrates the challenge of coordinating multiple threads in parallel computing. It involves Santa Claus, nine reindeer, and ten elves. The post explains critical concurrency concepts like mutexes and semaphores to manage threads. The solution highlights how to fix a subtle concurrency bug when coordinating the reindeer and Santa. Source code is available on GitHub for further exploration.
- 4
The Cherno·1y
Is this a Great Example for Beginners? // Code Review
A code reviewer provides an in-depth analysis of a simple C++ project implementing a Snake game using Raylib. The review highlights areas of good practice as well as aspects that can be improved, including project organization, code readability, and the use of libraries. The reviewer also offers tips on handling game states and structuring code for better maintainability.