5 pts.
 Hard Code
Collecting & entering  data in on bounces for a website.  Boss told me to put in a "hard Code" for a site with no data for this category. Should I average the last 3 months of data & use that for the "hard code". What's meant by a hard code?

Software/Hardware used:
Microsoft
ASKED: June 5, 2012  2:25 PM
UPDATED: June 6, 2012  6:57 AM

Answer Wiki:
Something is hard coded when you put it fixed in the application's code. A hard coded value is not read from any database or parameter file, i.e. it is not variable. As for using an average of the last 3 months, that is something you should ask your boss.
Last Wiki Answer Submitted:  June 5, 2012  3:01 pm  by  carlosdl   63,580 pts.
All Answer Wiki Contributors:  carlosdl   63,580 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

BTW, it is not a good practice to hard code things, you should try to avoid it unless there is a very good reason to do it.

 63,580 pts.

 

 

A hard-code in this case essentially is a constant.

You might still want to put the value into some external “properties” file or other object rather than simply putting it directly in your program code. In the future, it should be easier to adjust the value if you can avoid changing program code. Maybe you’ll discover that a two-month or four-month average is a better one.

Tom

 110,135 pts.