bn:02878849n
Noun Concept
Categories: Debugging, Computer programming folklore, All articles needing additional references, Software engineering folklore, Anti-patterns
EN
magic number  0xDEADBEEF  0xDEADC0DE  DEADBEEF  DEADC0DE
EN
In computer programming, a magic number is any of the following: A unique value with unexplained meaning or multiple occurrences which could be replaced with a named constant A constant numerical or text value used to identify a file format or protocol; for files, see List of file signatures A distinctive unique value that is unlikely to be mistaken for other meanings. Wikipedia
English:
programming
Definitions
Examples
Relations
Sources
EN
In computer programming, a magic number is any of the following: A unique value with unexplained meaning or multiple occurrences which could be replaced with a named constant A constant numerical or text value used to identify a file format or protocol; for files, see List of file signatures A distinctive unique value that is unlikely to be mistaken for other meanings. Wikipedia
Either a unique identifier or a literal with unexplained meaning Wikipedia Disambiguation
Sequence of bytes used to identify or indicate the format of a file Wikidata
A number which is manually entered into source code, rather than defined somewhere as a named constant; especially one which is arbitrary or lacks explanation. Wiktionary
EN
We replaced the magic number 31 with a constant called MAX_DAYS_IN_MONTH. Wiktionary