Hard Coding - Fixed Installation Path

Fixed Installation Path

If a Windows program is programmed to assume it is always installed to C:\Program Files\Appname and someone tries to install it to a different drive for space or organizational reasons, it may fail to install or to run after installation. This problem might not be identified in the testing process, since the average user installs to the default drive and directory and testing might not include the option of changing the installation directory. However it is advisable for programmers and developers not to fix the installation path of a program, since the default installation path is different in different natural languages, and different computers may be configured differently. It is a common assumption that all computers running Microsoft Windows have the primary hard disk labelled as drive C:, but this is not the case.

There was a similar problem with the microprocessors in early computers, which were built to expect the computer's initial program code to start at the address 0 of the memory pool (or at another fixed address). This was a failsafe layout for units designed for a narrow field of purposes, but lacked much expandability.

Read more about this topic:  Hard Coding

Famous quotes containing the words fixed and/or path:

    Genius detects through the fly, through the caterpillar, through the grub, through the egg, the constant individual; through countless individuals the fixed species; through many species the genus; through all genera the steadfast type; through all the kingdoms of organized life the eternal unity. Nature is a mutable cloud which is always and never the same.
    Ralph Waldo Emerson (1803–1882)

    Whoever heeds instruction is on the path to life, but one who rejects a rebuke goes astray.
    Bible: Hebrew, Proverbs 10:17.