Networking
Your Webhook Handler Will Be Called Twice and You Should Plan For It
At-least-once delivery means duplicates are normal operation, not an edge case. Here is how to build a handler that survives them.
Method rather than tooling: forming a hypothesis, choosing the cheapest experiment that falsifies it, and finding the wrong assumption underneath a bug.
Networking
At-least-once delivery means duplicates are normal operation, not an edge case. Here is how to build a handler that survives them.
Databases
Reading from cache is easy. Knowing when to remove something is where the bugs live, and most of them are races.
Shopify
Most Shopify performance advice is a list of tips in no particular order. Here is how to measure first, find the actual cause, and fix things in the order that matters.
JavaScript
Your editor takes four seconds to show a type error and tsc takes two minutes. There is a profiler for this and almost nobody uses it.
Networking
Every response is a success as far as HTTP is concerned. That one design decision breaks monitoring, retries, and error handling unless you plan for it.
Bug Hunt
A weekly export failed every Tuesday and worked every other day. Three wrong hypotheses later, the cause was a date format string nobody had looked at in four years.
Performance
Width is time, stacking is call depth, and left to right means nothing. Once those three facts land, flame graphs become the fastest way to find a bottleneck.
Debugging
Your commits are almost certainly still there. Here is how reflog works, what it cannot save, and the recovery path for each case.
Networking
OAuth errors are unhelpful by design, because detailed errors would help attackers too. Here is how to work out what is actually wrong.
AI
You cannot assert equality on a model response. You can assert a lot of other things, and most teams assert none of them.
Debugging
Setting a breakpoint rewrites your program's machine code while it runs. Here is the mechanism, from the 0xCC byte up to why conditional breakpoints are slow.
Debugging
Five years of keeping other people's websites online rewired how I think about failure. Mostly by making the consequences immediate.