I’m refactoring some client-server code and it uses the terms Response, Result & Reply for the same thing (an answer from the server). And although its not really that important it’s become hard to guess which word to use while writing new code, so I’d like to unify the three terms into one and do the appropriate refactoring, but I’m not sure which word is the ‘best’, if there is such a thing.
Any suggestions based on precedence and standards towards naming for this case?
Both response and result should be ok, because they can be shortened to ‘res’.
Whereas reply would be ‘rep’, which is ambiguous with repeat.
Maybe just follow the HTTP, call them request and response.