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:
“Were not blind and were not fools. Were just plain, sensible people who refuse to be fooled by a lot of supernatural nonsense.... Theres no magic in dried lizards and dead chickens.”
—Eric Taylor. Robert Siodmak. Frank Stanley (Robert Paige)
“This nightmare occupied some ten pages of manuscript and wound off with a sermon so destructive of all hope to non-Presbyterians that it took the first prize. This composition was considered to be the very finest effort of the evening.... It may be remarked, in passing, that the number of compositions in which the word beauteous was over-fondled, and human experience referred to as lifes page, was up to the usual average.”
—Mark Twain [Samuel Langhorne Clemens] (18351910)