Today I Learned
The small stuff that quietly makes you a better dev — one note at a time.Das kleine Zeug, das dich nebenbei zum besseren Dev macht — Notiz für Notiz.
35 notes35 Notizen~134 min to read all~134 Min. Lesezeit27 tagssince June 2026seit Juni 2026
Background jobs without a broker: one table, one worker per kind of work
Moving Catroweb's slow work onto Symfony Messenger with a MariaDB queue: what it fixed, how it works, and where deploys bite.
An Android game engine in the browser, without rewriting its source
Compile the app's existing engine to JavaScript, then patch whatever the browser lacks until the build is green.
Every clock gets caught by a better one
From pendulums to quartz to atoms: each new clock exposed the errors of the last one, until it caught the Earth itself running unevenly.
Measure durations with hrtime, not microtime
PHP's microtime() reads the wall clock, which can be reset mid-measurement. hrtime() only ever counts forward, so it is the one for elapsed time.
Why I need a middleman to read my own bank account
PSD2 gives me a right to my bank data but not the key — and the way it splits reading from paying is what keeps my tool read-only.
launchd recorded exit 0 for 18 nights
A step of my nightly job failed 18 mornings running while launchd recorded success. Neither the exit code nor the log's age caught it.
A test that reads your docs
An ordinary failing test whose subject is a sentence. The mechanism is three lines: read the fact out of the code, look for it in the document, complain when it is missing.
My biggest CLAUDE.md was 224 KB
Nine agent instruction files went from 455,530 characters to 88,584 — and the split that actually saves context is a plain markdown link, not an `@path` import.
Don't read what the agent did — read what it decided
A long AI task leaves behind a wall of output. Having it finish with a one-page report instead means you can judge the thinking before you check the work.
Stop watching the terminal — let it text you
A Telegram bot can report when a long job finishes; the useful decision is what is safe to put in the message.
The port took a day; getting the game right took four
An archived Java card game became a web and Android app in five days; most of the work was validating the rules and interface.
The cleanup that never ran
Firestore TTL needs a policy, not just a date; one shared document can also throttle every write.