Answer, result, answer, which is better?
I am refinancing some client-server code and it uses the terms Response, Result and Reply for the same thing (response from server). And while it's not really that important, it's hard to guess which word to use when writing new code, so I would like to combine the three terms into one and refactor accordingly, but I'm not sure which word is "better" if there is one. thing.
Any suggestions based on precedence and naming standards for this case?
source to share
If you want to stick to standard ISO / OSI terminology, this is either Indication or Confirmation. For an unconfirmed service, the initiator of the communication issues a Request "Request" (requesting data transfer to the other side), which is delivered to the other side as an "Indication". For an asserted service, the recipient of the pointer will respond with a Reply, which will include data to return to the originating party. This data will be presented on the other side as "Confirmation".
The data contained in the Confirmation indicates how the communication went (i.e. we sent a request and received a response). This can be called the result.
source to share