loading...

re: Writing readable code VIEW POST

FULL DISCUSSION
 

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.

code of conduct - report abuse