Self-modifying code
A program that rewrites its own instructions as it runs — on the first stored-program machines a necessity, not a dirty trick.
Once instructions and data share one memory, a program can treat its own instructions as data and change them mid-run. On the Manchester Baby and EDSAC around 1948 there were no index registers, so to walk through an array a program simply rewrote the address field of its own instructions, one step at a time. It was routine, not trickery.
Tom Kilburn's index register on the Manchester Mark 1 (1949) made the technique unnecessary: an address could now be counted up in a spare register without touching the code. Self-modifying code became something to avoid — hard to read, impossible to place in read-only memory, a nightmare to debug. Yet it survives where it pays: JIT compilers emit machine code on the fly, and malware mutates itself to dodge recognition.