Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> There is value in having consistent code, like quickly scanning it by other people and finding quickly common flaws.

Does that make up for the constant annoyance of having automatic formatter screwing up your code? Depends on how much code you write, I guess. If you write code a lot, you'd rather have your code retain the original formatting and put up with reading the code of others in their formatting style. This is not such a big deal, btw. A professional developer should be able to comprehend code in regardless of formatting (unless it's truly horrible, of course).

I notice that people who insist on mandatory use of code formatters don't actually write code that much. So they don't care that their code gets reformatted.



> I notice that people who insist on mandatory use of code formatters don't actually write code that much. So they don't care that their code gets reformatted.

This feels completely made up. As a reader of code, auto formatting makes my job slightly better due to consistency. As a writer it's a huge improvement. Not needing to think about where to put newlines and the like lets me focus on what actually matters.

My experience is similar to the author's - most people who are against code formatters change their tune quickly if you can convince them to try it.


I write lots of code and I love the auto-formatter...

I especially love it when working on a project with a few different developers that used an auto-formatter.




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: