Notes

Short thoughts.

Small things I've learned, one at a time. The longer versions are in Writing.

Good architecture is mostly invisible.

Nobody thanks you for the module boundary that let a feature ship in a week. They just notice that this part of the app is never on fire.

Every abstraction is something you now have to maintain.

A new layer doesn't remove complexity. It moves it somewhere and puts your name on it. Before adding one, I ask who will look after it in two years.

Measure first. Your guess is probably wrong.

On HeyWeather my first guesses about the hangs were not where the time went. Instruments was right and I wasn't.

A version number is a promise.

When five banks depend on your SDK, a breaking change isn't a bump in a number. It's five security reviews.

If a budget isn't in CI, it's a wish.

Memory, launch time, binary size. Pick a number, put it in a test, and stop having the same meeting every quarter.

Make the right way the easy way.

When I directed an intern on WARP, one enum for endpoints and one pattern for repositories did more than any written guideline. People follow the path of least resistance, so put the right path there.

Complexity usually arrives as a small exception.

"Just this once" is how most unmaintainable code I've inherited was built. Every exception was reasonable. All of them together were not.

Two copies of a fix are two chances to get it wrong.

At Coinlocally, three screens each protected the same data in their own way. One of them only looked protected.

Deleted code has a perfect security record.

Write code you could debug at 2 a.m.

That's when production calls, and you will be tired.