Clean Up Your Code by Applying These 7 Rules

Readable code is maintainable code

Image for post
Image for post
Photo by Kevin Ku on Unsplash

Remove unnecessary code comments

Focus on naming

If statements

Early exit

Destructuring assignment

The boy scout rule

Code style

Conclusion

Written by

Passionate Javascript/Typescript developer | Clean code fanatic | Trying to become a productivity guru | Sharing knowledge is part of the process

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store