logoalt Hacker News

BWStearns • today at 1:13 AM • 0 replies • view on HN

I think there's a broader point here, which is if you want _anything_ to work well, use it often. Bugs spawn easier in rarely exercised code. One of the things I'll often push at work is that if we _have to_ be good at handling some Rare Scary Thing[0] then we should, if practical, try to bring the scary part into more commonly exercised code, because it makes the Scary Thing happen more often and you'll get better at it faster. Otherwise you end up making the happy path work and just kind of hope you covered the rest of it[1].

Failover is a great example because in many business cases you _have to_ be good at it when you have the very bad day, but there are ways to avoid it in steady state.

[0] E.g.: Complex authz logic, deploys, interactions with a fragile remote service, etc. [1] Obviously you shouldn't just cover the happy path, but you and the people you work for probably like money and it will be hard to justify pre-bulletproofing some edge case than the median one.