News for hackers. Stuff that matters.
Re:A Prettier JavaScript Formatter by benologist on Tuesday January 10, 2017 @04:00PM (#13368934)
Gofmt was the catalyst for me. I do it with StandardJS in Visual Studio Code on save automatically, I won't waste my time manually formatting code - or caring about it - again.

Personal code formatting preferences is a problem. Devs should just let go of it, once it applies automatically your preferences quickly change.

You can even wire up GitHub etc repos to automatically reject pull requests that add pointless formatting preferences someone will pointedly defend.

Re:A Prettier JavaScript Formatter by jeremy_wiebe on Wednesday January 11, 2017 @12:06AM (#13371894)
Can you point me to more information regarding Github and rejecting pull requests that are strictly formatting changes? Sounds interesting...
Re:A Prettier JavaScript Formatter by benologist on Wednesday January 11, 2017 @11:17AM (#13374962)
The formatters have command line programs that return error codes if a file requires fixing so you can require not getting an error from that in your testing or building process.