1 min readMay 18, 2020
Indeed, the initial example given in the article — avoiding looking up the same record multiple times in a data base — is a prime example of something that is not a pure function. Someone else might have update the database since you last read it, so you would then be using a stale value.
Would probably have been worth mentioning in the article as a potential pitfall.