An Alternative to Magic Numbers

Written by Laracasts - - Aggregated on Friday July 12, 2019

Technique #6. A magic number is an important value in your system that isn't instantly clear. If you ever find yourself thinking, "Now what does this number represent," you likely have a magic number on your hands. Instead, consider giving it a name.


« Weekly Update 147 - Troy Hunt

Laravel News - Fast Node Manager »