SSW Foursquare

Use Enum Constants instead of Magic numbers?

Last updated by TiagoAraujo almost 6 years ago.See history

Using "Magic numbers" in your code makes it confusing and really hard to maintain.

MagicNumberBad
Figure: Bad example - "Magic Number" works, but is a bad idea

MagicNumberGood
Figure: Good example - No Magic Number, looks good and is easy to manage

We open source. Powered by GitHub