14
DevRage
7y

You know whats hard? Naming variables , school didnt teach me this stuff

Comments
  • 1
    For my first year learning i just used var1 var2 string1 string2

    I would comment what they where for but not always
  • 3
    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.
  • 1
    @PonySlaystation i get confused, counter-a, counter-b,counter-c
    Me: whats for counter a again?
  • 5
    @Cesar I really think your code is really messy if you have counters like this. Try to split up your block to functions...
  • 1
  • 4
    Also if youre counting multiple things do killCount, playerCount etc :)
  • 2
    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.
Add Comment