Instead of magic numbers, you might want to look at having things return an enum. That can make the code more legible and maintainable.
Instead of magic numbers, you might want to look at having things return an enum. That can make the code more legible and maintainable.