I agree, one thing I would add to "magic numbers" though is use constants, this way if you have such a "magic number" then you can share this across your whole codebase, keeping it DRY and easier to maintain.
Really good article and great advice.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you so much for putting words over "magic numbers", it was so painful to try to teach avoiding something when you can't name it!
Good article ;)
I know the feeling 😄
Glad you found it useful.
I agree, one thing I would add to "magic numbers" though is use constants, this way if you have such a "magic number" then you can share this across your whole codebase, keeping it DRY and easier to maintain.
Really good article and great advice.