Blog
-
[2026] CMake Tutorial for C++: CMakeLists.txt, Targets, and Cross-Platform Builds
Learn CMake for C++ projects: CMakeLists.txt, add_executable, add_library, target_link_libraries, find_package, out-of-source builds, VS Code CMake Tool...
-
[2026] C++ vector Basics | Initialization, Operations, Capacity, and Patterns
std::vector crash from vec[10] with size 3: at() vs [], reserve vs resize, erase-remove, iterator invalidation, emplace_back, and production buffer patt...
-
[2026] C++ STL Algorithms Basics | sort, find, count, transform, accumulate
Replace hand-written loops with std::sort, find, find_if, count_if, transform, accumulate—iterator ranges, erase-remove, lower_bound on sorted data, and...
-
[2026] C++ Profiling | Finding Bottlenecks with perf and gprof When You Don’t Know What’s Slow
Measure before you optimize: C++ profiling with Linux perf, gprof, flame graphs, std::chrono, and Valgrind. Fix bottlenecks with data, not guesses—CPU s...
-
[2026] C++ Debugging Basics | GDB and LLDB — Breakpoints and Watchpoints in Minutes
Stop printf debugging: GDB and LLDB breakpoints, conditional breaks, watchpoints, backtraces, stepping, multithread deadlock analysis, and core dumps—pr...
-
[2026] Advanced CMake for C++: Multi-Target Projects, External Dependencies, and Large-Scale Builds
Advanced CMake: multi-target layouts, target_link_libraries, FetchContent, find_package, generator expressions, install() and Config.cmake, cross-platfo...
-
[2026] C++ JSON Parsing: nlohmann/json, RapidJSON, Custom Types, and Production Safety
Parse REST APIs and config files in C++ safely: nlohmann/json vs RapidJSON, contains/value/at, to_json/from_json, parse_error and type_error, streaming,...
-
[2026] C++20 Coroutines: co_await, co_yield, and Escaping Callback Hell
C++20 coroutines explained: co_yield generators, co_await async patterns, promise_type and coroutine_handle, lifetime pitfalls, Task/Generator sketches,...
-
[2026] C++20 Modules: Escape Include Hell and Speed Up Builds with import
C++20 modules: export module, import, partitions, global module fragments, CMake 3.28 FILE_SET MODULES, GCC/Clang/MSVC workflows, common errors, and inc...
-
[2026] C++ constexpr Functions and Variables: Compute at Compile Time [#26-1]
Master C++ constexpr: compile-time constants, constexpr functions, literal types, C++14/20 rules, if constexpr, consteval, lookup tables, and common err...