by EspadaV9 · 2y ago · 0 comments
Really like that they don't give options to change the settings. Just one less thing to bike shed within teams. Really doesn't matter what is picked, just as long as it is consistent (and not obviously stupid).
The ‘original’ quote, from someone explaining why gofmt has no configuration options is:
> The usual saying is that gofmt isn’t anybody’s preferred style, but it’s adequate for everybody.
And the interpretation from someone asking about configuring some aspect of it is (emphasis mine):
> The usual saying is that gofmt isn’t anybody’s preferred style, but it’s adequate for everybody who still using it
Being opinionated about defaults is often a positive thing. Removing any options just makes your tool less useful.
Which order do they do it in? Later classes are later in the css so more likely to be applied?
https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity
> If the competing selectors have the same values in all the three columns, the proximity rule comes into play, wherein the last declared style gets precedence.
I’m well aware of how css works, I’ve been here since we did table layouts with shims!
If the knife storage had been opinionated, we would have expended no effort and achieved consistency. The choice of direction was essentially arbitrary, but making a choice and sticking to it was valuable.
- https://prettier.io/docs/en/why-prettier - https://prettier.io/docs/en/option-philosophy
I switched to Rome (now Biome) after this debacle: https://github.com/prettier/prettier/issues/840
As to whether they do make obviously stupid choices - I personally don't mind any of their choices (even if I wouldn't have made the same choice myself), and I know I'm not alone in this position, which means that by definition they're not "obviously" stupid. You can disagree with the choices and the trade-offs, sure, that doesn't make it obviously stupid.
Random user: Your software is unacceptable; add an option to my favorite subjective preference!
I wonder, are those people trolling?
value = (a ? ((a * b) + c) : d);
It turns into: value = a ? a * b + c : d;
This is just a very basic example, there are many situations where the result is way worse. I feel pretty confident in saying that this is quite obviously stupid.