DEV Community

Discussion on: Writing readable code

Collapse
 
titouansola profile image
Titouan Sola

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 ;)

Collapse
 
wangonya profile image
Kelvin Wangonya

I know the feeling 😄

Glad you found it useful.

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.