A deep dive into how, why, and when to use pure functions — A man walks into a bar and the waiter brings him a glass of water. After finishing his water, the man orders a whiskey sour. Instead of serving it in a fresh glass, the waiter refills the water glass with scotch, lemon juice, and sugar. Unbelievable, right? When I order…