Magic Number (programming)
In computer programming, the term magic number has multiple meanings. It could refer to one or more of the following:
- A constant numerical or text value used to identify a file format or protocol; for files, see List of file signatures
- Distinctive unique values that are unlikely to be mistaken for other meanings (e.g., Globally Unique Identifiers)
- Unique values with unexplained meaning or multiple occurrences which could (preferably) be replaced with named constants
Read more about Magic Number (programming): Unnamed Numerical Constants, Magic GUIDs, Magic Debug Values
Famous quotes containing the words magic and/or number:
“There is no magic decoding ring that will help us read our young adolescents feelings. Rather, what we need to do is hold out our antennae in the hope that well pick up the right signals.”
—The Lions Clubs International and the Quest Nation. The Surprising Years, III, ch.4 (1985)
“The said truth is that it is the greatest happiness of the greatest number that is the measure of right and wrong.”
—Jeremy Bentham (17481832)