Chapter 8: Hardcode

 < Day Day Up > 



 Download CD Content

Description

Hardcode refers to placing values that affect the application directly in the code when they would be easier to maintain in separate resource files. While very few would consider placing the data for an image directly in the source code, it is common for a string or number to be placed directly in the code.

Hardcoding values into the source code of an application can cause many problems and solves few. Yet, this quick and lazy solution is taken far too often as the path of least resistance. The proper handling of these values represents hard work, and it is therefore not surprising that it is not done properly. However, this hard work will pay for itself and more as development moves along.



 < Day Day Up > 



Preventative Programming Techniques. Avoid and Correct Common Mistakes
Preventative Programming Techniques: Avoid and Correct Common Mistakes (Charles River Media Programming)
ISBN: 1584502576
EAN: 2147483647
Year: 2002
Pages: 121
Authors: Brian Hawkins

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net