Developer Reference
Opinionated micro-docs. One right answer. Copy-paste ready.
Categories
Git
2
Version control commands, workflows, and common fixes
JavaScript
1
Language features, patterns, and runtime behavior
TypeScript
1
Type system, compiler options, and type-level programming
Node.js
5
Runtime APIs, module system, and server-side patterns
React
0
Components, hooks, state management, and rendering
CSS & Layout
0
Layout, selectors, responsive design, and visual effects
Linux & Shell
3
Command-line tools, scripting, and system administration
Recently Added
Array reduce: sum values and transform objects
JavaScript
iterates an array and accumulates a single result. The key: always return the...
Undo the last commit but keep the changes
Git
Reset the last commit while keeping all changes staged and ready to re-commit....
Fix "Cannot find module" with ES modules in Node.js
Node.js
Node.js ES modules require explicit file extensions in import paths. Unlike...
Run a command on every file find matches
Linux & Shell
To run a command on each file matches, use with as the placeholder and a...
Find files modified within a certain time range
Linux & Shell
To find files by age, use 's flag. The sign works backwards from what feels...
Get the full (absolute) path of a file
Linux & Shell
Resolve any relative path to its full, absolute path: Why , Not is the common...
List all git-ignored files and folders in a repo
Git
Get a flat list of every file and folder git is currently ignoring: Why This...
A storage URL builder and its static file handler must share one prefix constant
Node.js
When a storage abstraction returns URLs that the app's static-file handler is...
Content-hash dedup that restores a soft-deleted row must re-run quota and limit checks
Node.js
Content-hash dedup is supposed to be free: same bytes, same row, no charge. If...
Serialize per-user check-then-write flows with pg_advisory_xact_lock(hashtext(id))
Node.js
When the same user can race against themselves on a check-then-write flow...