Idempotence: What is it and why should I care?
cloudingmine.com
Idempotence: What is it and why should I care?
1–10 of 77 posts
Re: Idempotence: What is it and why should I care?
#2Re: Idempotence: What is it and why should I care?
#3Re: Idempotence: What is it and why should I care?
#4The "absolute value" function is idempotent: abs(abs(-42)) = abs(-42)
The "squared" function is not: sq(sq(7)) != sq(7)
Re: Idempotence: What is it and why should I care?
#5So in essence both the "up" and the "down" migrations are idempotent and warn if they are not (and why).
Re: Idempotence: What is it and why should I care?
#6A function f is idempotent if: f(f(x)) = f(x) The "absolute value" function is idempotent: abs(abs(-42)) = abs(-42) The "squared" function is not: sq(sq(7)) != sq(7)
$ chmod a+x file
$ chmod a+x file
This is linked to mathematical idempotence in the sense that an operation is a function which takes some inputs i and the state of the world S and produces a new state S':S' = f(S, i).
So then if f(f(S, i), i) = f(S, i) then f is idemponent mathematically, and the operation is idempotent in the software sense.
Re: Idempotence: What is it and why should I care?
#7Re: Idempotence: What is it and why should I care?
#8Re: Idempotence: What is it and why should I care?
#9Re: Idempotence: What is it and why should I care?
#10A function f is idempotent if: f(f(x)) = f(x) The "absolute value" function is idempotent: abs(abs(-42)) = abs(-42) The "squared" function is not: sq(sq(7)) != sq(7)
This is about idempotent operations , which are basically state changes that have the same affect if executed multiple times as if executed once: $ chmod a+x file $ chmod a+x file This is linked to mathematical idempotence in the sense that an operation is a function which takes some inputs i and the state of the world S and produces a new state S': S' = f(S, i). So then if f(f(S, i), i) = f(S, i) then f is idemponen…