Live data from Hacker News

$20k bounty was claimed

prettier.io

21–30 of 345 posts

Re: $20k bounty was claimed

#21
post #14
post #9

Earlier quoted context omitted.

What do you mean by "backwards"?

The "diff" appears to be backwards (it's subtracting what prettier would emit, and adding back the original).

The diff is between the test cases’s expected output (red) and the utility’s current output (green).

Re: $20k bounty was claimed

#22
post #6

That's interesting. I've been using "deno fmt" as of late and it's been fine for me. https://docs.deno.com/runtime/manual/tools/formatter

If you switch from Prettier to deno-fmt you will notice many changes to perform on your code base. Biome tries to minimize these changes.

Re: $20k bounty was claimed

#23
I feel like people complaining about Prettier being "heavily opinionated" are missing the point. Perhaps I'm biased by my decade of using Go, but not having to worry about superfluous stylistic choices is a welcome reduction in cognitive load. (Up to a point I guess, e.g. I'd never put up with K&R-style newline opening brackets).

Re: $20k bounty was claimed

#24

I'm still salty that all my eslint plugins decided to remove perfectly fine linters in lieu of Prettier. I find Prettier to be way too heavy handed and hard to reason about, and yet another tool that I never asked for...

> I find Prettier to be way too heavy handed

But that's the purpose of such tools: to stop endless debates about style.

Re: $20k bounty was claimed

#25
post #8

> One question you are probably wondering is why would the Prettier team fund another project!? In practice, Prettier has been the dominant code formatter for JavaScript and as a result of a lack of competition, there has been little incentive to push on performance and fix various edge cases. I was indeed wondering that but the answer doesn't really answer the question for me. Why not set a bounty to improve Prettie…

> why would the Prettier team fund another project!?

Less "the team" per se, and more vjeux, I think.

Re: $20k bounty was claimed

#26

Speed is always welcome, but I just wish prettier was a little less opinionated. Specifically around line length, it will just not leave my formatting alone. I find prettier formatted code much less readable than unformatted code, and this isn't a problem I have with other code formatters like rustfmt.

I wish it were more opinionated.

It treats new lines as significant in a lot of its formatting

Re: $20k bounty was claimed

#28
Many people comment the reasons without acknowledging that part as well:

> By matching all the tests, the Biome project also found a lot of bugs and questionable decisions in Prettier that we will be able to improve upon.

For me, this means that they have another implementation for sanity checking their own.

Re: $20k bounty was claimed

#30
post #23

I feel like people complaining about Prettier being "heavily opinionated" are missing the point. Perhaps I'm biased by my decade of using Go, but not having to worry about superfluous stylistic choices is a welcome reduction in cognitive load. (Up to a point I guess, e.g. I'd never put up with K&R-style newline opening brackets).

Prettier is very opinionated about line length which gofmt isn't. That's the only complaint I have and it's bad enough I just refuse to use it. Add one character to a line and enjoy a ten-line diff.

Edit: See a contrived example of something gofmt doesn't touch (the behavior I want): https://go.dev/play/p/cKMKnFwT8tq

Post reply on HN