News for hackers. Stuff that matters.
Re:VS Code can do that? by vjeux on Saturday April 21, 2018 @12:10PM (#16891953)
So honored to see Prettier being the #3 tip!
Re:VS Code can do that? by Tagore on Saturday April 21, 2018 @02:15PM (#16892519)
I'm an evangelizing convert to Prettier. I was hesitant about it until I tried it, but... I am sold on it now. Prettier has costs- there are cases where I'd like to format things based on semantics not syntax, to show intent, and Prettier can't read my mind (feature request: make Prettier read my mind.)

But the costs are more than offset by the benefits. I didn't realize how much of a cognitive burden thinking about formatting was until I stopped thinking about it, and it turns out that using formatting to signal intent is perilous when people don't agree on how formatting signals intent.

I'm pushing to have Prettier used across all our JS code- there is some resistance to the idea of running it across a several hundred k line non-prettified codebase and some resistance to the idea of using it at all. And this causes problems. Prettier is best when you use it for everything.

But I'm pretty sure we'll eventually just move to prettification. It seems like the right thing to me, and I'm generally right ;). Anyway, thanks for Prettier- I am not actually a huge JS fan despite mostly writing it professionally, but Prettier does away with some of my complaints about JS, and just generally makes my life easier.

Re:VS Code can do that? by dvlsg on Saturday April 21, 2018 @01:08PM (#16892219)
Well deserved! I was amazed at how much of a game changer a automatic code formatter was. Saves me a ton of time.

I do prefer adding a .prettierrc to projects, though, instead of inside vscode options (user or project) like what is suggested here. That way my teammates and I can use the same settings, even if they don't use vscode.

Re:VS Code can do that? by thatswrong0 on Saturday April 21, 2018 @02:22PM (#16892567)
Prettier is the greatest thing since sliced bread for the frontend world. Seriously - not having to think about formatting (esp. breaking lines!!) is a huge boon to development

Thank you

Re:VS Code can do that? by mg74 on Saturday April 21, 2018 @03:01PM (#16892774)
Prettier stopped working for me for 2 weeks some months ago. Least productive 2 weeks for me for a long time.

The cognitive load it costs to worry and fret about code formatting....

(thank you)

Re:VS Code can do that? by outside2344 on Saturday April 21, 2018 @01:02PM (#16892196)
Cream rises to the top - awesome tool - thanks for creating it!
Re:VS Code can do that? by ascorbic on Saturday April 21, 2018 @05:05PM (#16893442)
I love Prettier so much. Thanks for making it.
Re:VS Code can do that? by orf on Saturday April 21, 2018 @12:36PM (#16892074)
Congratulations!
Re:VS Code can do that? by joemaller1 on Saturday April 21, 2018 @12:50PM (#16892143)
You earned it