9 min read
The Array.sort() Bug Only Numbers Above 9 Trigger
Array.sort() with no compare function left 9 of 20 sorted numbers in the wrong place. One compare function…
The Lab · Written in the open · Tagged Tutorials
Working notes from the studio. The tools I build, the workflows I keep, the mistakes I paid for.
62 entries · latest 2026-11-06
Latest entry
I timed string concatenation against array push and join across four loop sizes, and the old quadratic-cost advice did not hold.
Read the entryAll entries · Tutorials
9 min read
Array.sort() with no compare function left 9 of 20 sorted numbers in the wrong place. One compare function…
9 min read
Claude Code 2.1.311 and 2.1.312 ship ultrathink at xhigh via the API, a renamed 5-hour usage limit, and…
9 min read
A healthy Node process has a sawtooth memory graph; a rising floor means a leak
9 min read
Cron runs in UTC by default, so a "midnight" job can fire on the wrong local day
8 min read
Reject bad requests at the edge before they touch real logic or a database
9 min read
Plain recursion crashed at exactly 9,275 calls deep. An iterative rewrite handled 215 times that depth in 13ms.
9 min read
A one-line swap took a 50,000-row lookup from 408ms to under 1ms. I measured both methods instead of…
9 min read
Every webhook arrives twice eventually, so design for it from day one
9 min read
I planted a bug in a 1,000-commit repo. git bisect run found it in 10 runs, after three…
9 min read
Version 2.1.224 removes the 200 subagent cap, adds self hosted runners, cross session messaging, and tighter sandbox credential…
9 min read
MCP dropped its session handshake for a stateless core, hardened OAuth, and made tool lists cacheable, with SDK…