Code quality issues related to data types can be summarized as
follows:
-
Write literal constants so that they match the data type
of other constants and variables used in the same expressions.
This makes the code more self-documenting.
-
Name all of your constants to make your code readable and
modifiable.
-
Avoid mixing data types in expressions as much as possible.
Mixed may cause bugs that are difficult to track down.
-
Don't abbreviate variable and constant names. This is an
irrational type of laziness that will save you about 1 second
of typing and cost much more in debugging time later.