Once upon a time, everything was a global variable. Immutability and pure functions delivered us from the chaos.