DEV Community

Cover image for Why Do I Love Code Formatters?
Yarden Porat
Yarden Porat

Posted on • Edited on

Why Do I Love Code Formatters?

Is it because standardizing the code makes it more readable? Also, but no.
Is it because it saves unnecessary discussions about style in reviews? Also, but no.
Is it because it saves us the need to think about formatting at all? Also, but no.
I love Code Formatters because they provide instant validation—immediate feedback on whether the syntax is correct. In large projects, nothing gives you validation on the code in the file you are editing as quickly. Linting can take a few seconds. Unit tests running with watch take more time. A development server with HMR is usually slower.

Even if you are an expert in a certain domain, one day you might find yourself in a codebase you're unfamiliar with, in a language that isn't your forte, and you'll be grateful that a formatter was enforced in the project.

code formatters

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay