WHY did this C++ code FAIL? @TheCherno
WHY did this C++ code FAIL?  @TheCherno
Uploaded May 2024 | Updated September 2026, 2 weeks ago
To try everything Brilliant has to offer—free—for a full 30 days, visit brilliant.org/TheCherno . You’ll also get 20% off an annual premium subscription.

Patreon ► patreon.com/thecherno
Instagram ► instagram.com/thecherno
Twitter ► twitter.com/thecherno
Discord ► discord.gg/thecherno

CODE ► github.com/luizfelipemb/OresSDL

Hazel ► hazelengine.com
🕹️ Play our latest game FREE (made in Hazel!) ► studiocherno.itch.io/dichotomy

🌏 Need web hosting? ► hostinger.com/cherno

Send an email to chernoreview@gmail.com with your source code, a brief explanation, and what you need help with/want me to review and you could be in the next episode of my Code Review series! Also let me know if you would like to remain anonymous.

📚 CHAPTERS
0:00 - Hello
1:29 - ALWAYS stack allocate if you can
4:20 - The cat is back
4:36 - API design considerations
7:27 - return 0 in the main function
8:31 - Organization and code conventions
11:22 - Variable intialization
14:44 - Deep class hierarchies
18:12 - Managing states
20:58 - defines
25:32 - Avoid copying causing unnessary heap allocations
26:38 - More on #define
28:50 - Consistent code style
30:33 - Compilation warnings
31:13 - Logging and release builds
32:30 - struct vs class
33:16 - Cleaner code
35:21 - Final thoughts and conclusion
36:48 - Use std::weak_ptr

💰 Links to stuff I use:
⌨ Keyboard ► geni.us/T2J7
🐭 Mouse ► geni.us/BuY7
💻 Monitors ► geni.us/wZFSwSK

This video is sponsored by Brilliant.
WHY did this C++ code FAIL?Just a chill dev logC++ FINALLY Made Logging GOOD!Remaking My First Game in 3D in My Own Game Engine!Working on Hazel 2023.2 for Ludum Dare (Renderer 2.0) - first YouTube livestream in a while!Rendering a Sphere Using Ray Tracing! // Ray Tracing SeriesBEST WAY to make Desktop Applications in C++Game Engine WITHOUT LIBRARIES! // Code ReviewIs This C++ Code Actually Safe?Minecraft Clone in C++ // Code ReviewWhat if your terminal could HELP YOU?🕹️ 72 HOUR GAME JAM! // Ludum Dare 53 (Part 3)
The Cherno |

WHY did this C++ code FAIL?

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER