Programming and Data Types Considerations

0 Comment

Programming affiliation Programming Factors that programmers should reflect on when selecting between data types Brian (1999) argues the considerations that should be made when choosing a data type. The author argues that programmers are advised to consider the condition of their gadgets or the direction in which they are supposed to direct their gadgets when choosing data types (Brian, 1999). First, Brian (1999) says that a programmer should consider their existing code to know which program model is in use at the initial stages. It is an extraordinary state to realistically change data types considering the changes that could be made on the source codes. A programmer should also review the time investment that could be made in putting into operation the change. Requirement in performance is also a considerable factor assuming canes on the memory should also be considered. Additionally, whether a performance will increase should also be considered when selecting a data type. A short integer should be applied when one is using unrefined binary data. The data should also not show any indication of compatibility. In addition, short integers are handy when dealing with a stream of records from a network or file. On the other hand, a long integer is used when counting numbers for integer math. Brian (1999) postulates that a very long integer is used in incidences when the existing integers cannot hold the required value. In addition, it is useful when bi- numbers are requisite. The long inter is the most frequently used due to its flexibility and efficiency.ReferenceBrian, W. (1999). The Practice of Programming. New York: Pearson.