Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
"Too often we pussyfoot around with computer sciency sounding words instead of just calling it exactly what it is." - nope. too often, there's just no way to exactly nail "what something is" down to a short word.
-
bioDan56223y@tosensei i agree, but we don't need a perfect variable name. We must juggle around a tension between abstraction and distinction.
On one end, it must be abstract enough to encompass the meaning of the variable in the context of the scope.
On the other end, must be specific enough so that there is no redundant information in the definition itself.
The inbetween tension of the two ends contains a golden range where the variable name is best understood by the majority of developers. The range size is context dependent. -
bioDan56223y@tosensei funny enough, its a problem with language and communication as a whole (Naming titles of movies/books/articles/etc.)
-
Just use some sort of varname to get started, find/replace later when you think of one that's better. Repeat, if you want to, for as many times as you want to. Don't waste time agonising.
-
Well sometimes it goes out of hand also:
I once ended up with AutoRenewTokenRetryOnceOnUnauthorizedAuthorizedServerHttpService, was a class name though
Related Rants
“Stop trying to name it and name it”
Kevlin Henney adapting Morpheus’ iconic “stop trying to hit me and hit me” with regard to choosing names for classes/functions/vars. Too often we pussyfoot around with computer sciency sounding words instead of just calling it exactly what it is.
rant
wk309