Use Enum Constants instead of Magic numbers?
27/04/2018 3:11 AM by
Using "Magic numbers" in your code makes it confusing and really hard to maintain.
- Figure: Bad example - "Magic Number" works, but is a bad idea
- Figure: Good example - No Magic Number, looks good and is easy to manage
Do you feel this rule needs an update?