6 tips to clean up your code
Writing clean code is an important part of being a good developer. Like a good book or newspaper, your code must be easily readable and understandable.
The goal is to keep to a minimum the cognitive effort required to iterate on your code.
Don’t hesitate to spend time testing stuff and rewriting it.
The clearer your code is, the fewer bugs it will hide, and the less time it will take for other developers to understand it.