Skip to content

Glossary: Refactoring and Clean Code

magic numbers

Also written: magic number, magic string

Numbers (or strings) in code with no name, such as 20, 0.15 and 300. Naming them or moving them into tables shows what they mean.

Where the book teaches it

Related terms

Lookup tableCode smell