hard-coded

hard-coded

(jargon)
(By analogy with "hard-wired") Said of a data value or behaviour written directly into a program, possibly in multiple places, where it cannot be easily modified. There are several alternatives, depending on how often the value is likely to change. It may be replaced with a compile-time constant, such as a C "#define" macro, in which case a change will still require recompilation; or it may be read at run time from a profile, resource (see de-rezz), or environment variable that a user can easily modify; or it may be read as part of the program's input data.

To change something hard-coded requires recompilation (if using a compiled language of course) but, more seriously, it requires sufficient understanding of the implementation to be sure that the change will not introduce inconsistency and cause the program to fail.

For example, "The line terminator is hard-coded as newline; who in their right mind would use anything else?"

See magic number.
This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)
References in periodicals archive ?
Traditionally, developers have written software as a series of hard-coded rules: If X happens then do Y.
Open captions, on the other hand, are hard-coded into the media and cannot be turned off; they're a part of the video file.
Well, I think you accidentally hard-coded cell F64.
Some of the most discomfiting displays in the city are at the museum dedicated to the criminologist Cesare Lombroso, in which the yellowed wax death masks of prisoners, their criminal proclivities thought by Lombroso to be hard-coded in genetic and physical traits, appear in a macabre parody of a police line-up.
Hard-coded with an entirely hidden order book at its core, trades cannot be observed by any parties (including Republic Protocol itself) prior to execution.
For example, although ABIDES was hard-coded with a rigid reporting function, it pales in comparison to today's dynamic business intelligence tools which afford users the flexibility to pull data from a system any way they wish to see it.
Best Practice #3: Manage shared secrets and hard-coded passwords.
In addition, network parameters have also had to be "hard-coded" to maintain the compatibility with the specific operating system software versions of the handsets.
The only difference is that in the crypto-world, the monetary policy is hard-coded into the software and cannot be manipulated.PREDETERMINED AND HARDWIREDFor example, with regard to bitcoin, the number of coins projected to be in circulation and the frequency of their issuance are predetermined in the software at the point of launching the bitcoin network.
"That's not hard-coded into anything, it's an aspiration."
The set of opponent types included hard-coded bots such as RandomBiasedAI, POWorkerRush, and POLightRush as well as search-based bots such as PuppetSearch and Nai'veMCTS.