Blog
-
C++ Development Environment Complete Guide | OS·Hardware·Tools·Settings Recommendations
C++ development environment setup guide. From OS, hardware, IDE, compiler, Sanitizer (ASan/UBSan), build optimization (ccache·mold), team/CI alignment, ...
-
C++ Game Engine Basics: ECS, Rendering, Physics, Input, Lua Scripting [#50-3]
Build a 2D game engine from scratch: ECS architecture, SDL rendering with z-index sorting, AABB physics with collision resolution, input system with eve...
-
C++ REST API Server Complete Guide | Routing, Middleware, JWT, Swagger [#50-2]
Build Express-style REST API servers in C++: routing with path parameters, middleware chain (logging, CORS, auth), JSON request/response, JWT authentica...
-
C++ Memory Leaks: Causes, Detection, and Prevention with Smart Pointers
Fix and prevent C++ memory leaks: missing delete, exceptions, cycles, Valgrind and ASan, RAII, unique_ptr, shared_ptr, and weak_ptr patterns.
-
C++ Memory Management: new/delete, Stack vs Heap, and RAII
Deep dive into C++ memory: stack vs heap, dynamic allocation with new/delete, RAII, smart pointers, and common pitfalls—new, delete[], placement new, an...
-
C++ Name Mangling Explained: Symbols, extern 'C', and Linking
How C++ encodes function and variable names for overloading and namespaces. Essential for debugging link errors, mixing C and C++, and ABI concerns.
-
C++ Object Slicing: Value Copies, Polymorphism, and Fixes
Object slicing in C++: copying derived objects into base values loses state and breaks virtual dispatch—use references, pointers, and smart pointers.
-
C++ Compiler Comparison: GCC vs Clang vs MSVC — Which Should You Use?
Compare C++ compilers: GCC, Clang, and MSVC. Learn the four compilation stages, -O0/-O2/-O3 optimization, error messages, and how to pick a compiler for...
-
C++ Stack vs Heap | Why Recursion Crashes and Real Stack Overflow Cases
C++ stack vs heap: stack overflow from deep recursion and huge locals, memory layout, performance, new/delete, smart pointer lead-in—Valgrind and ASan-f...
-
C++ Memory Leaks | Real Server Outage Cases and Five Patterns Valgrind Catches
C++ memory leaks: new/delete pitfalls, smart pointers, Valgrind and AddressSanitizer. Early returns, double free, delete[] mistakes—fix leaks before the...