Magic Number (programming)

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:

    The magic of first love is our ignorance that it can ever end.
    Benjamin Disraeli (1804–1881)

    Ah, but to play man number one,
    To drive the dagger in his heart,
    To lay his brain upon the board
    And pick the acrid colors out,
    To nail his thought across the door,
    Its wings spread wide to rain and snow,
    To strike his living hi and ho....
    Wallace Stevens (1879–1955)