Hacker News new | past | comments | ask | show | jobs | submit login

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.




Can you point me to more information regarding Github and rejecting pull requests that are strictly formatting changes? Sounds interesting...


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.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: