3 ms·
Maybe a code formatter should be just brutally simple and predictable. Fearing the look of long, complicated statements, coders will shorten their statements an
by MeteorMarc 5y ago
Maybe a code formatter should be just brutally simple and predictable. Fearing the look of long, complicated statements, coders will shorten their statements and just do one thing per statement.
- criddell 5y agoIt also encourages shorter and often less descriptive names. That's not necessarily a good thing.
- eyelidlessness 5y agoThis really depends a lot on the language syntax, naming of built ins, and common idioms. Like Java is notorious for its long lines because it’s so verbose and long naming is the common convention. Lisps are notoriously far off to the other extreme. There’s quite a lot of room between those extremes, occupied by languages like Python and Ruby. And then there’s languages like JavaScript and especially TypeScript which span most of the range depending on preference.