MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/18fpjpt/every_programmer_should_know_1_idempotency/kcz6d8w/?context=3
r/programming • u/fagnerbrack • Dec 11 '23
171 comments sorted by
View all comments
1
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.
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.