3 ms·
This might not be the most salient place to start when critiquing this article but it did irk me that they get the definition of idempotent wrong even while lin
by jayd16 7y ago
This might not be the most salient place to start when critiquing this article but it did irk me that they get the definition of idempotent wrong even while linking to Wikipedia.
>That is, the data returned from a query is always the same.
That is not correct. Only the system state remains the same. As stated in the linked wiki page:
>[...] the end result is always the same as the result of the initial execution, even if the response differs.
- edent 7y agoThat's a fair criticism. What is the correct word for "this request always generates an identical response"?
- matharmin 7y agoImmutable
- edent 7y agoAha! Yes. Thanks. I'll update the blog post.
- DarkWiiPlayer 7y agoImmuteble describes data, whereas an API call is more like a function call, in which case we'd call the property "referential transparency", which means, a function always returns the same result for a given input value. "referential transparency" makes up half the definition of a "pure" function, with the other half being the absence of side effects.
- marton78 7y agoPure
- DarkWiiPlayer 7y agoPure also means no side effects, which isn't, strictly speaking, what OP means :)
- opifex 7y agoDeterministic