▲ | ParetoOptimal 3 days ago | |
> I promise after a week you'll just get used to whatever format your team lands on. Arthur Witney formats like this:
If your code was formatted automatically like that, do you think you'd get used to it after a week?My point is there is meaning of how code is formatted and there is an effect on understanding for certain people. I think that at a certain point of "reasonable" and for most "normal" people your statements hold true, but I don't want anyone to think that every person caught up on formatting is just doing it for bike-shedding or other trivial reasons. I don't know what is actionable if what I say is true, but it feels important to say. | ||
▲ | fallpeak 3 days ago | parent [-] | |
The unreadability of that example has approximately nothing to do with code formatting, which is generally understood to refer to modifying the textual representation of the code while leaving the actual logic more or less unchanged. Can you propose some alternative whitespace or indentation scheme which would make that example significantly more readable? |