DEV Community

Discussion on: Writing readable code

Collapse
 
13roy profile image
13ROY

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.