We're a place where coders share, stay up-to-date and grow their careers.
req and res are two good candidates too! Especially when you start caching, fetching from backend and api… resFromServ, resFromCache, resFromNetwork etc. make things much easier to understand!
req
res
resFromServ
resFromCache
resFromNetwork
I really like this example, good call out😉
It is until it isn't. This is one of the large problem with the suggestion to use shorthands, is they mean different things to different people.
Coming from a Win32 background, "res" is a "resource", such as icons, images, etc. They're non-code elements compiled into a file exe file.
Its easy to get keyword conflictions between people when shortening them like this.
req
andres
are two good candidates too! Especially when you start caching, fetching from backend and api…resFromServ
,resFromCache
,resFromNetwork
etc. make things much easier to understand!I really like this example, good call out😉
It is until it isn't. This is one of the large problem with the suggestion to use shorthands, is they mean different things to different people.
Coming from a Win32 background, "res" is a "resource", such as icons, images, etc. They're non-code elements compiled into a file exe file.
Its easy to get keyword conflictions between people when shortening them like this.