Blog
-
Vitest Browser Mode | Real Browser Tests
Run Vitest in real browsers: providers, vitest/browser APIs, Playwright vs WebdriverIO, screenshot tests, CI setup, and how Browser Mode differs from js...
-
Zod Complete Guide | TypeScript Schemas
Master Zod for TypeScript: primitives, objects, refinements, transforms, safe parsing, React Hook Form integration, API and env validation — with interv...
-
Zustand Complete Guide | Minimal React State
Learn Zustand for React: tiny API, TypeScript inference, selectors, async actions, middleware (persist, devtools), and patterns that replace Redux boile...
-
C++ MinMax Algorithms: std::min, max, minmax_element & clamp
Use std::min, max, minmax, min_element, max_element, minmax_element, and C++17 std::clamp — two-value vs range APIs, iterators, and performance notes.
-
C++ Default Initialization — Complete Guide
Default initialization happens with no initializer. Local scalars may be indeterminate; reading them is undefined behavior.
-
C++ RVO and NRVO | Return Value Optimization Complete Guide
RVO vs NRVO: when the compiler elides copies on return, C++17 guaranteed elision for prvalues, NRVO heuristics, and interaction with move semantics.
-
C++ Remove Algorithms: remove, unique & the Erase–Remove
Understand std::remove and remove_if with vector erase, unique after sort, list::remove, and C++20 std::erase / erase_if — plus string cleanup patterns.
-
C++ Replace Algorithms: replace, replace_if & replace_copy
Replace values in place or into a new range with std::replace, replace_if, replace_copy, and replace_copy_if — O(n) scans and vs std::string::replace.
-
C++ Search Algorithms: find, binary_search, lower_bound &
Choose between linear find and binary search on sorted ranges; use lower_bound, upper_bound, and equal_range for positions and equal-key runs in C++.
-
C++ Set Operations on Sorted Ranges: set_union, intersection
Run set_union, set_intersection, set_difference, set_symmetric_difference, and includes on sorted ranges — complexity, duplicates, and output iterators.