[WEBINAR] The New Normal: Dealing with the Reality of an Unsecure World


Definition - What does Hardcode mean?

A hardcode is a part of a computer program which cannot be altered in any way except by changing the source code of the program itself.

This means that if the software has already been compiled and made into an executable, the hardcoded portion of the program stays constant no matter what is done to the software. This is usually done for certain fixed parameters and values that should always be constant, like Pi or the speed of light.

The process of creating a hardcode is known as hardcoding.

Techopedia explains Hardcode

Only certain portions of a program can be hardcoded and the most basic examples are constant values, especially those used in the sciences like physics and chemistry, as well as math in general. A hardcode has one purpose, and that is to ensure that the value being hardcoded cannot be changed during run time of a program.

Some developers consider hardcoding to be a bad programming practice, but it does have some merits and appropriate uses. For example, sometimes unique serial numbers are hardcoded to software to ensure validity of the copy.

Techopedia Deals

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
"Techopedia" on Twitter

Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Free Whitepaper: The Path to Hybrid Cloud
Free Whitepaper: The Path to Hybrid Cloud:
The Path to Hybrid Cloud: Intelligent Bursting To Amazon Web Services & Microsoft Azure
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.