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:
“A full bosom is actually a millstone around a womans neck: it endears her to the men who want to make their mammet of her, but she is never allowed to think that their popping eyes actually see her. Her breasts ... are not parts of a person but lures slung around her neck, to be kneaded and twisted like magic putty, or mumbled and mouthed like lolly ices.”
—Germaine Greer (b. 1939)
“The genius of democracies is seen not only in the great number of new words introduced but even more in the new ideas they express.”
—Alexis de Tocqueville (18051859)