Andreas Bollig
4y ago
I write about freelancing, solopreneurship, web dev and data science.
Why you should immediately start using an automatic code formatter for your sake and your colleagues', too.
Code formatters like Black (Python) and Prettier (JS, HTML, CSS, ...) are tools that can automatically format your code. They come with many benefits:
Your code will look great.
You will save time and mental energy.
You can stop worrying about the right way to format a piece of code.
There will never be a discussion about code formatting with your teammates again.
And that horribly formatted code from your colleagues? Gone for good!
Once you start using one of these, you will notice how much time you used to spend on formatting. Now you can spend that time more productively.
Most code editors can be configured to run formatters every time you hit save. This way, you can forget about code formatting altogether. Go ahead and type a horribly formatted mess and at the click of a button, all you see is perfect order.
The formatters' opinionated style might not completely match your preferences, but the benefits far outweigh this.
Start using an automatic code formatter like Black or Prettier today and make code formatting a non-issue.