Once upon a time, everything was a global variable. Immutability and pure functions delivered us from the chaos.
The object-oriented paradigm popularized by languages including Java and C++ has slowly given way to a functional programming approach that is advocated by popular Python libraries and JavaScript ...