5 ms·
> just make a choice Now you are bikeshedding. Just go with the defaults.
by garbagepatch 1y ago
> just make a choice
Now you are bikeshedding. Just go with the defaults.
- wartijn_ 1y agoWhich defaults? The programming languages I’ve worked with don’t have defaults for everything related to formatting. Editor defaults don’t work, since not everybody uses the same editor. So you have to make a choice somewhere.
- swiftcoder 1y agoA lot of (relatively) recent languages do have defaults. Go and rust both come with an auto formatter out of the box, and defaults that are sane enough to just run with
- wartijn_ 1y agoAh yeah, in those cases it is possible to just use the defaults. Come to think of it, I have worked with Deno, which comes with a formatter (and linter and testing library) and I’m a fan. Saves a couple of dependencies, some config files and a bit of mental overhead when creating a new project.
- stavros 1y agoI guess the GP means "use an opinionated formatter", I agree with both of you.
- genericspammer 1y agoPlease inform me what the defaults are for Java, C#, C++, C, Bash and Python?
- sfn42 1y agoAs far as C# goes there's `dotnet format`. You can use it as is or provide an `.editorconfig` file to customize it.