I
Immortal Nephi
You could have heard Hungarian Notation. The Complete Code book said
Hungarian Notation is no longer used anymore, but Microsoft continues
to use it.
I can’t think how to name that variable. The algorithm has two tasks
to convert data from integer number to real number or from real number
to integer number back and forth.
There are two version of classes. One class uses integer number and
another one use real number.
For example, Dollars_Cents class has two separated classes. First
version of Dollars_Cents class uses integer number and second version
of Dollars_Cents class uses real number (floating precision). Do not
use template.
Sometimes, floating precision is not accurate when you use number
division, but integer number is very accurate.
How do you name that class? The variable name might look like that
below.
class Integer_DollarsCents { … };
class Real_DollarsCents { … };
Integer_DollarsCents is better choice because integer number saves
more memory space, but floating precision wastes a lot of memory space
because it uses either 4 byte length or 8 byte length.
Hungarian Notation is no longer used anymore, but Microsoft continues
to use it.
I can’t think how to name that variable. The algorithm has two tasks
to convert data from integer number to real number or from real number
to integer number back and forth.
There are two version of classes. One class uses integer number and
another one use real number.
For example, Dollars_Cents class has two separated classes. First
version of Dollars_Cents class uses integer number and second version
of Dollars_Cents class uses real number (floating precision). Do not
use template.
Sometimes, floating precision is not accurate when you use number
division, but integer number is very accurate.
How do you name that class? The variable name might look like that
below.
class Integer_DollarsCents { … };
class Real_DollarsCents { … };
Integer_DollarsCents is better choice because integer number saves
more memory space, but floating precision wastes a lot of memory space
because it uses either 4 byte length or 8 byte length.