Writing

Notes from shipping
production code

Short writeups on bugs I've fixed in open-source projects, patterns I've learned building AI-powered systems at work, and the kind of subtle software behaviour that's only visible from the trenches.

All Posts
Up next

BullMQ was crashing on getRanges() because Python's list.reverse() returns None

A 1-line fix in BullMQ's Python port that taught me the universal lesson about Python's mutating-vs-returning method conventions. .reverse(), .sort(), .append() — they all mutate in place and return None.

The bug where VS Code's Debug Console was pasting 'repl:1' into my clipboard

A 2-line CSS fix in VS Code that taught me how user-select: text cascades through every descendant — even the decorative ones. The fix for my own misread of the bug: stop looking at JavaScript, start looking at the cascade.