Linked Questions
69 questions linked to/from What is an idempotent operation?
1
vote
2
answers
780
views
What it means for Disposable.dispose() to be idempotent? [duplicate]
RxJava documentation for Disposable.dispose states
Dispose the resource, the operation should be
idempotent.
And according to the Wikipedia definition of Idempotence
Idempotence is the property of ...
863
votes
25
answers
404k
views
What is the difference between declarative and imperative paradigm in programming?
I have been searching the web looking for a definition for declarative and imperative programming that would shed some light for me. However, the language used at some of the resources that I have ...
420
votes
27
answers
294k
views
When do you use POST and when do you use GET?
From what I can gather, there are three categories:
Never use GET and use POST
Never use POST and use GET
It doesn't matter which one you use.
Am I correct in assuming those three cases? If so, what ...
289
votes
15
answers
223k
views
When should I use GET or POST method? What's the difference between them?
What's the difference when using GET or POST method? Which one is more secure? What are (dis)advantages of each of them?
(similar question)
236
votes
8
answers
66k
views
Is REST DELETE really idempotent?
DELETE is supposed to be idempotent.
If I DELETE http://example.com/account/123 it's going to delete the account.
If I do it again would I expect a 404, since the account no longer exists? What if I ...
86
votes
8
answers
14k
views
Are idempotent functions the same as pure functions?
I read Wikipedia's explanation of idempotence.
I know it means a function's output is determined by its input.
But I remember that I heard a very similar concept: pure function.
I Google them but can'...
86
votes
7
answers
357k
views
python: [Errno 10054] An existing connection was forcibly closed by the remote host
I am writing python to crawl Twitter space using Twitter-py. I have set the crawler to sleep for a while (2 seconds) between each request to api.twitter.com. However, after some times of running (...
77
votes
3
answers
115k
views
Using Amazon SQS with multiple consumers
I have a service-based application that uses Amazon SQS with multiple queues and multiple consumers. I am doing this so that I can implement an event-based architecture and decouple all the services, ...
39
votes
3
answers
44k
views
What does idempotent method mean and what are the side effects in case of calling close method of java.lang.AutoCloseable?
Java docs of close() method of java.lang.AutoCloseable says
Note that unlike the close() method of Closeable, this close() method is
not required to be idempotent. In other words, calling this ...
43
votes
4
answers
3k
views
Do C and C++ optimizers typically know which functions have no side effects?
Say for very common math functions, such as sin, cos, etc... does the compiler realise they have no side effects and have the ability to move them to outer loops? For example
// Unoptimized
double ...
17
votes
4
answers
15k
views
Using many consumers in SQS Queue
I know that it is possible to consume a SQS queue using multiple threads. I would like to guarantee that each message will be consumed once. I know that it is possible to change the visibility timeout ...
15
votes
5
answers
20k
views
How to design a RESTful API to check for user's credentials?
I'm designing an API for a mobile app, and I hope to keep it RESTful.
API's are authorized using Basic HTTP Auth, however, When the user open the app for the first time, he need to login first, so I ...
wong2's user avatar
- 36.1k
26
votes
2
answers
27k
views
What happens when no response is received for a request? I'm seeing retries
The question I have is probably more of a browser related question I think, but its a pretty fundamental one I'd like to find the answer too as I venture into building a web application.
In my client ...
3
votes
1
answer
11k
views
Access-Control-Allow-Origin error
I'm using the following script -
<!DOCTYPE html>
<html>
<head>
<script src="jquery-1.9.1.min.js"></script>
<script>
function postForm() {
$.ajax({
...
9
votes
4
answers
984
views
Exactly what rules must a function abide before we can call it "idempotent"?
A post from another thread says that a function is said to be idempotent if it can be called multiple times without changing the result.
However the terms used (like no-side-effects and return-same-...