Blog
-
C++ Class Templates — Complete Guide
C++ class templates: Stack vector<int> vs duplicate IntStack classes, partial specialization, template aliases with using, CTAD, and production.
-
C++ Lambda Basics | Capture· mutable
C++ lambdas: [=] [&] capture, mutable, generic lambdas, std::function recursion pitfalls, STL algorithms, and dangling reference bugs—practical guide.
-
C++ string fundamentals — std::string, C strings,
C++ strings: std::string ops, C-string comparison with strcmp (not ==), string_view lifetimes, common bugs, and performance tips—with runnable examples.
-
C++ std::vector Basics — Initialization, Operations &
C++ std::vector fundamentals: init, access, insert/erase, size vs capacity, reserve vs resize, iterator safety, and production patterns.
-
C++ STL Algorithms Basics | sort· find
Replace hand-written loops with std::sort, find, find_if, count_if, transform, accumulate—iterator ranges, erase-remove, lower_bound on sorted data.
-
C++ Profiling — Complete Guide
Measure before you optimize: C++ profiling with Linux perf, gprof, flame graphs, std::chrono, and Valgrind.
-
C++ Cache-Friendly Code — Complete Guide
Practical C++ cache optimization guide. Achieve 10x performance improvement with cache-friendly code.
-
C++ Debugging Basics — GDB & LLDB: Breakpoints, Watchpoints,
C++ debugging with GDB/LLDB: breakpoints, watchpoints, conditional breaks, backtraces, stepping, and core dumps—find segfaults faster than printf.
-
Advanced CMake for C++: Multi-Target Projects, External
Advanced CMake: multi-target layouts, target_link_libraries, FetchContent, find_package, generator expressions, install() and Config.cmake.
-
C++ Package Managers: Escape “Library Install Hell” with
C++ package managers explained: vcpkg and Conan for dependencies, CMake integration, manifests, triplets, profiles, CI, caches, and production patterns.