chanjungskim
06/02/2023, 6:23 AMPablichjenkov
06/02/2023, 6:32 AMgetX
when there is direct access to the resource in the same thread, and getX returns immediately.
retrieve/fetch/resolve
when the function returns a result but the result is not returned immediately in the thread. Either because of suspend, or asynch coroutine.
request
when the function doesn't return a result, and uses some callback mechanism to do so later on.Adam S
06/02/2023, 7:09 AMfindXXX()
would return a nullable response, while getXXX()
would return non-null, but throw an exception if it didn’t exist. It was nice having a standardised method naming structure.czuckie
06/05/2023, 2:20 PMgetXXX
suggests to me the operation would be cheap. request|fetchXXX
makes me think that a network request would be involved. query|retrieveXXX
makes me think db or file based operation.
No huge reason other than years of reinforcement.statmark56
09/02/2023, 1:49 AMPablichjenkov
09/02/2023, 2:06 AM