14
u/Walter-Haynes Nov 18 '21
This is kind of a bad example, number is a really fricking bad variable name.
I think it's mostly handy for extra information, not crucial information.
Take Player.sprintSpeed for instance, would be a very descriptive variable name.
The tooltip could then go into further detail, denoting that the speed is in m/s.
3
2
1
u/burros_killer Nov 19 '21
That's a nice tip, but wouldn't work in a lot of if not most work environments since it lacks consistently and cleanliness (clutters inspector a bit). I'd say if you think you need to use this - think a bit more on variable name. This should work like a comments in code and you don't need to comment variables in most situations.
1
1
0
24
u/fL0xeL Nov 18 '21
I’d suggest just using descriptive variable names in the first place. But this could be useful for added detail.