Also, naming:
The point: choose names (and data structures) that actually reflect what the thing being named is and is used for. It helps you and others to read and understand the code.
numb
obviously seems short for "number". Why then would a number have attributes (or properties) x
, y
and i
? That doesn't make much sense. If your program, say, was to do with geometry, then you might have a variable called point
and it would be natural to read point.x
, point.y
, point.z
as the coordinates of that point.The point: choose names (and data structures) that actually reflect what the thing being named is and is used for. It helps you and others to read and understand the code.