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
-
skprog19107yFor my first year learning i just used var1 var2 string1 string2
I would comment what they where for but not always -
Why are people always complaining that naming variables is so hard?
Just name it for what they contain or their purpose is...
Nothing hard about that. -
DevRage50437y@PonySlaystation i get confused, counter-a, counter-b,counter-c
Me: whats for counter a again? -
@Cesar I really think your code is really messy if you have counters like this. Try to split up your block to functions...
-
Well, name it for:
what it contains + what it is
It contains the number of kills? It's a counter? It's a killCounter.
It's contains something that should be output? It's a string? It's an outputString.
You know whats hard? Naming variables , school didnt teach me this stuff
undefined