Trespo / WitherPoop

haha wither go poooooop
0 stars 0 forks source link

Moses pointers 2 - Variable names should say what they hold #2

Closed mosemister closed 3 years ago

mosemister commented 3 years ago
Player p;

While in this situation its obvious that "p" is for player, when you get 100+ lines of code. The "p" could be player, particle, etc.

By naming it what it is, it helps you and people reading your code and it doesnt cost anything in terms of compiling or anything like that

mosemister commented 3 years ago

Not fixed completely