Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

FWIW it doesn't matter which formatter you choose, so long as everyone working on the project is required to use it.


100% I also personally believe you should pick a formatter and NOT configure it. I don’t care anymore about style. Just want formatting to be consistent.


Yeah, that's my take as well. The less there is to configure, the better. Something I like about Go is that I don't need any project-specific settings, because there are none. (Not strictly true, as some people use gofumpt instead of gofmt. I think this is a bad idea, even though I agree with all of gofumpt's formatting changes. What matters is will everyone use it on every commit? Not if gopls doesn't do it for you.)

At my last job, we had a lot of fun with Prettier. We basically made our Typescript codebase look as much like Go as possible. I am not sure this is a particularly valuable endeavor, but it was fun. So if people are willing to spend $20,000 on making that faster, whatever. They can have that fun, I guess.


In the same way it doesn't matter which side of the road you drive on. What matters is that everyone else is also driving on that side




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: