in other news i talked to a friend about their netcode issues

"that smells like 2pc. don't do that"
"ids should probably be stable over time"
"yeah that thing with two messages should be one message if you want it to be atomic"

of course, said friend had already implemented the right code elsewhere for something else, the actual problem was chasing a performance optimisation

the real, already implemented elsewhere solution was "actually stale reads are fine" and "i can use epochs for that"

en

Replying to @⁨tef@mastodon.social⁩

it was either russ cox or rob pike, someone bell labs flavoured, who talked about the two different types of debugging approach, one involved surgical application of printfs and the other involved leaning back in your chair and thinking about it for a bit

the joke then was that the chair leaner always seemed to nail the problem

diving into "what is my code doing" is useful sure but sometimes asking "what sort of code would have done this" can narrow down the search window to a single line