Cheatsheets

Cheatsheets for software engineers: the kind of thing that usually ends up as a poster on a wall. One job per sheet, drawn end to end, with the part that catches people out left in.

  • Common storage types - One user record. Two tables, one document, and a copy with a deadline on it.
  • Session, JWT and OAuth - One login, three ways of proving it. Revoke it, and only one of them stops.
  • Strategy, Decorator and Adapter - Three C# classes behind one interface, and what each does with the same call.
  • Chain, Command and Observer - One order, dispatched three ways. Who ends up running the work, and when.
  • The outbox pattern - You cannot commit a row and publish a message together. So you write the message as a row.
  • SOLID in C# - Five rules in C#, each one broken and then kept, and what running it did underneath.
  • Idempotency - The response got lost, so the client asked again. Charging twice is your problem, not theirs.
  • Auth protocols - Twenty ways to prove who you are, what each one is for, and what it costs to run.
  • System design concepts - The ten words an interview expects you to define, in the pairs people run together.
  • Sorting algorithms - Eight algorithms race on their real operation counts. Move the size control and the order the labels promise falls apart.