Reading this article is completely safe even if you already understand idempotency.
I want to meet the article that isn’t safe to read even if you’re familiar with its content.
Idempotency
41–50 of 69 posts
Re: Idempotency
#42Reading this article is completely safe even if you already understand idempotency.
Re: Idempotency
#43Idempotency is one mathematical concept that's pretty useful for software engineers to understand. Heck, might be more useful than BigO. - Useful to know when you work with APIs (as the article outlines). - Very useful when working with background jobs. You're not gonna have a good time if those aren't idempotent. - Good to know for interviews. I was asked to explain idempotency a handful of times, weird as that is.
I've seen this lead to some confusing back and forth between software engineers, where one engineer means one definition, and the other engineer meant the other definition.
Re: Idempotency
#44My day-job is Data Engineering. We've carefully built our ETL patterns/tools/data structures to be idempotent. It's amazing how freeing this is. Dealing with cascading failures, intermittent failures, delays, re-runs and time-zones are all os much more manageable when we know that just re-running any given task will do the right thing. It's also amazing how hard of a concept idempotent data pipelines are for some fol…
Re: Idempotency
#45Earlier quoted context omitted.
I’m not totally sure, but in math “idempotent” elements are those for which x^2 = x. And so in software engineering it refers to operations for which doing them twice has the same effect as doing them once. Maybe this is what is meant by “same power”?
It refers to functions where f(x) = x.
I believe idempotency is when f(f(x)) = f(x)
Re: Idempotency
#46Re: Idempotency
#47Re: Idempotency
#48 'raise the control rods by 1 inch'
vs
'raise the control rods to a height of 4 inches'Re: Idempotency
#49Earlier quoted context omitted.
I’m not totally sure, but in math “idempotent” elements are those for which x^2 = x. And so in software engineering it refers to operations for which doing them twice has the same effect as doing them once. Maybe this is what is meant by “same power”?
It refers to functions where f(x) = x.
You can abuse notation slightly to see this as f^2(x) = f(x). (This kind of notation is actually used enough to be comfortable to most mathematicians.) From here it's not much of a stretch to eta-contract this to f^2 = f.
And so we've ended up back in the same place...
Re: Idempotency
#50Fancy word for an obvious concept.
Naming something also helps us to think about it. "A square" is also an obvious concept, but by naming it you can reason about it more easily, and use it to define more abstract concepts later. One of the main reasons we - humans - dominate the earth, is because we evolved an advanced language, which allows us to name ideas and build upon them.