Blog
-
LeetCode Patterns: Two Pointers and Sliding Window
Master LeetCode two pointers and sliding window patterns.
-
Astro Content Collections Advanced Guide — Schema, Type
An advanced guide to Astro Content Collections: Zod schemas, TypeScript inference, i18n, dynamic routing, search and filtering, and build performance.
-
C++ std::optional vs Pointers: Representing No Value
std::optional vs nullptr: optional models absent values with type safety; pointers for non-owning observers, polymorphism, and shared ownership.
-
GitHub Actions CI/CD Guide | Workflows· Secrets
Build CI/CD pipelines with GitHub Actions.
-
C++ return Statement — Complete Guide
C++ return: basics, return types, references, pointers, RVO/NRVO, multiple return values (pair, tuple, optional), and common pitfalls with examples.
-
C++ Views | Lazy Range Views in C++20
C++20 std::views: lazy evaluation, filter, transform, take, drop, and pipeline composition with ranges—when views evaluate and common pitfalls.
-
MongoDB Schema Design Guide | Embed vs Reference· Patterns
A guide to MongoDB schema design covering embed vs reference patterns, one-to-many relationships, and denormalization trade-offs.
-
C++ Zero Initialization | The 'All Bits Zero' First Step
Zero initialization sets storage to zero. Static and thread-local objects get it before dynamic init; locals do not unless you value-initialize.
-
C++ Crash Debugging Case Study
Production C++ server: intermittent segfaults traced with core dumps, gdb, and rr—how to debug “cannot reproduce” crashes and data races.
-
C++ scoped_lock — Scoped locking, std::lock, and deadlock
std::scoped_lock (C++17) is an RAII lock that locks multiple mutexes at once via std::lock.