4 ms·
> It turns out that if you use 80 columns as a heuristic, the vast majority of the code will look fine. I'm not sure what corpus was used to determine that heu
by mbell 8y ago
> It turns out that if you use 80 columns as a heuristic, the vast majority of the code will look fine.
I'm not sure what corpus was used to determine that heuristic (nor what tab size). But it would trash a lot the projects I work on.
- spraak 8y agoAre these projects still JS?
- mbell 8y agoI was speaking in general, I don't have any dart projects which I believe is what the OP is about. I do have JS projects that I think would be rather ugly if limited to 80 char line length is that is what you are asking.
- spraak 8y agoYeah, I mean the project is specific to JS so not do relevant to consider other languages here
- vjeux 8y agoThe goal of prettier is not to format code exactly as you would have written but to format it in a reasonable way. The upside is that as a developer you don’t need to worry about formatting yourself as you can just write code in a bad way, save the file and it’s formatted. And as a team, you will no longer spend any time in code review arguing about formatting and doing roundtrips to change small nits. If the result is good enough that you are willing to let go of your manual formatting, the upsides are nontrivial.