3 ms·
>* code beautification is also highly subjective. Everybody has different opinions on beauty and easy to read. Providing the means to allow developers to exerci
by fnord123 8y ago
>* code beautification is also highly subjective. Everybody has different opinions on beauty and easy to read. Providing the means to allow developers to exercise those opinions dynamically and automatically makes people happy. So long as it’s just vanity the code stills executed and reads the same way.
No. Formatters have won. All code should be run through a formatter that contains zero options. The result is the how the code looks. Obviously languages with significant whitespace are more limited in what their formatters can do, but the point about it being subjective is irrelevant.
- bauerd 8y agoYou forgot to mention why formatters would be superior. I do share your opinion, and the two reasons I can think of are (1) consistency and (2) short-circuits style discussions in code review.
- gigatexal 8y agoI agree. Gofmt is an opinionated know-it-all jerk but a fair and consistent one at that.
- austincheney 8y ago> a formatter that contains zero options Why must the formatter be opinionated? Why should a single form of vanity be forced on users? If my software were so opinionated nobody would use it.