this post was submitted on 17 Nov 2023
34 points (92.5% liked)

Rust

5989 readers
48 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
 

The Prettier Bounty is a challenge to write a prettier-compliant pretty printer in Rust

you are viewing a single comment's thread
view the rest of the comments
[–] RonSijm@programming.dev 13 points 1 year ago (10 children)

$22k is pretty nice. Through I have no idea what "the prettier JavaScript tests" even means.

Is there a unit-test bootstap project someone could download that verifies this requirement? I'm already too confused deciphering what the contest even is

[–] sugar_in_your_tea@sh.itjust.works 17 points 1 year ago* (last edited 1 year ago) (6 children)
[–] Anders429@programming.dev 4 points 1 year ago (2 children)

Wow, they really did not make that clear at all on the contest description.

[–] sugar_in_your_tea@sh.itjust.works 7 points 1 year ago* (last edited 1 year ago)

Yeah, "pretty printer" to me means some kind of pretty output library, like for terminal applications. I'd call this a "code formatter," but whatever.

I guess this is what happens when your community doesn't standardize on something early on. I guess I take cargo fmt for granted.

[–] snaggen@programming.dev 3 points 1 year ago (1 children)

They say you should pass 95% of the Prettier JavaScript tests to win the price.

[–] Anders429@programming.dev 2 points 1 year ago (1 children)

What tests? There is no hyperlink, for all I know, these are just some hidden tests that the owners of the competition run on the solutions to verify them. There is no link to Prettier at all, and at a first read it's very unclear this is what they want you to do if you aren't already familiar with the tool they want you to recreate.

[–] snaggen@programming.dev 4 points 1 year ago (1 children)

Ok, I don't know what is more worrying, that a developer fails to find prettier on GitHub, or that a developer fails to Google it. But I guess that if you fail this, you were probably not the target audience for the challenge.

[–] hascat@programming.dev 4 points 1 year ago

Nobody reading about the contest in the linked page should have to rely on Google to fully understand the parameters of the contest. Whoever authored this page is lazy.

load more comments (3 replies)
load more comments (6 replies)