A joke is a small machine for disrupting expectations — two rails leading toward one destination that suddenly switch to another. Nasreddin was perhaps the greatest joke architect of the medieval world; his stories feel inevitable in retrospect and impossible to anticipate in advance, which is the precise definition of a perfect mechanism. Study the joke carefully enough and you find, underneath the laughter, a theory of how the mind builds its cage.
Each step builds on the last.