Hacker News new | ask | show | jobs
by yoodenvranx 2659 days ago
The thing with ideal auto-formatters is that there is no discussion about tabs vs spaces anymore!

In a perfect world each language has exactly one (non-configurable) formatter and this solves all the formatting discussions.

For JS I use prettier and altough I am not 100% happy with some of the formatting choices I _love_ it because I can focus on code and not have flamewars about tabs vs spaces with my co-workers. prettier ends all style discussions. And code reviews are much nicer because people concentrate on checking the code, not the formatting.

1 comments

I think the perfect world would have any number of formatters, but with ubiquitous tooling that allows each person to see code in their preferred format.
This sounds horrible for collaboration and pair programming tho.