Blog
-
CMake Tutorial for C++: CMakeLists.txt, Targets,
Learn CMake for C++ projects: CMakeLists.txt, add_executable, add_library, target_link_libraries, find_package, out-of-source builds, VS Code CMake.
-
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.
-
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++ constexpr Functions and Variables: Compute at Compile
Master C++ constexpr: compile-time constants, constexpr functions, literal types, C++14/20 rules, if constexpr, consteval, lookup tables, and common.
-
C++ SSL/TLS Secure Communication | Complete OpenSSL + Asio Guide [#30-2]
Plain HTTP is not safe. A complete guide to TLS handshakes, OpenSSL + Asio and pure-OpenSSL examples, certificates and mTLS, common SSL errors, best practices, production patterns, and Let’s Encrypt deployment.
-
C++ Shallow vs Deep Copy & Move Semantics Complete Guide
Master C++ copy and move semantics for interviews: shallow/deep copy differences, Rule of Three/Five, rvalue references, std::move, perfect forwarding.
-
C++ Smart Pointers & Breaking Circular References with
Complete guide to solving circular reference memory leaks with weak_ptr.
-
C++ shared_ptr Circular References: Parent/Child, Observer,
Master shared_ptr circular reference patterns causing memory leaks: parent-child trees, observer pattern, graph nodes, resource caches.
-
C++ Data Races: When to Use Atomics Instead of Mutexes
C++ data races explained: mutex vs std::atomic, memory orders, deadlock avoidance, and compare-exchange—with examples.