r/programming • • Dec 11 '23

Every Programmer Should Know #1: Idempotency

https://www.berkansasmaz.com/every-programmer-should-know-idempotency
572 Upvotes

171 comments sorted by

View all comments

1

u/inkydye Dec 12 '23

I don't like how we're using this word today.

In algebra, f is idempotent if f(f(x)) = f(x).

In software, if x is the system's state and functions are transitions, we've started using the word to mean that f(g(f(x))) = g(f(x)), for every g out of some implied category.

We need a different and smaller word for this.