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.
References in periodicals archive ?
Millions of routers, modems, IP cameras, VoIP phones and other embedded gadgets share the same hard-coded SSH (Secure Shell) host keys or HTTPS (HTTP Secure) server certificates.
These addresses are hard-coded to bypass the hosts file and cannot be prevented from connecting.
Crowley explained that the app has a hard-coded Bluetooth PIN of 0000 making any person using the app able to control any Satis toilet.
The 'My Satis' Android application has a hard-coded Bluetooth PIN of 0000,
By clicking on the app, Volvo Rents customers have access to important rental equipment information including equipment make, model number and equipment specification information hard-coded within the application.
The current website has been hard-coded by Ken, who writes the HTML himself.
By decoupling hard-coded security features from enterprise applications to create reusable, standards-based security services and protocols which any application can consume, Service-Oriented Security enables organizations to simplify and centralize several critical security processes including authentication, authorization, user administration, role management, identity virtualization and governance, and entitlement management, as well as audit and control.
The command line interface functionality allows customers to easily and securely integrate PAR with their existing systems-management tools, such as patch management or vulnerability assessment, or to remove hard-coded passwords from scripts used to perform routine maintenance.
By leveraging the existing library of source and target adapters of WellFound Decade's Mortgage Integration Foundation, customers can achieve end-to-end productivity enhancements without custom-developing cumbersome, hard-coded, point-to-point interfaces," said Tom Litke, WellFound Decade's executive vice president of marketing and products.
Meanwhile, a red-faced Cisco admitted that there's a backdoor in its Wireless LAN Solution Engine (WLSE) and Hosting Solution Engine (HSE) software, in the form of a hard-coded default username and password that cannot be disabled.
The X-Stop Files, published in October 1997 by attorney Jonathan Wallace, names some of the sites that were hard-coded on X-Stop's list of blocked URLs, including the AIDS quilt and the official homepage of the Quakers.
Some of these physical preferences are so important to reproduction that they appear to be hard-coded into a guppy's genetic heritage.