Constant-time programming
Writing crypto code whose running time and memory access pattern don't depend on secret values, so a stopwatch can't stand in for the key.
The rules are few but awkward: no branches on secret data, no table indices derived from the key, and no variable-latency instructions on secret operands. The classic mistake is checking a MAC with memcmp, which stops at the first mismatch and so announces how many bytes were right. The correct version XORs every byte, accumulates the result and only looks at it at the end.
Paul Kocher showed in 1996 that timing attacks on RSA work in practice, and the field has largely consisted of finding new places where time leaks ever since. The hard part is that the compiler doesn't share the goal: an optimiser that notices the answer is already known will happily insert an early exit into your carefully branchless code. That's why critical routines are often written in assembly, or checked afterwards with tools that hunt for secret-dependent branches.