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
-
Orang637yI like to keep them relevant to the context. If it's some private variables it's np to name them shorter. And as always.. Name things what they are. It usually means contemplating longer than writing, but it quickly pays off.
-
Orang637yThis is how you make Greg a living legend between us regular souls. Nice to find these when looking at the source 2 years later with Greg long 404
-
simus2467yi made this rant because my co-worker alway want to change variable name like something_id to id_something and other unsignificant change, and i can't understant why.
@Baguette your 'CamelCase' is writed in PascalCase, you probably mean camelCase (another thing my co-worker bother me with, but i can understand why) -
Shodan4987yIt can be subjective insofar as there are synonyms for that name in a thesaurus (which is a tool I use a lot). Being capable of expanding your vocabulary is a good programming-relevant skill to have.
var money, cash, currency, coins, dough, greenStuff, etc can all be seen as the same thing (context permitting).
i'm the only one thinking naming variable can and could be something a little bit subjective? or are everybody else can find the perfect name that make it crystal clear for any person reading it?
undefined
#pointofview