3 ms·
That’s sort of what the parent is saying: “the only code formatting rule that matters is consistency, everything else is bollocks”. But people want to think the
by Analemma_ 9y ago
That’s sort of what the parent is saying: “the only code formatting rule that matters is consistency, everything else is bollocks”. But people want to think there’s some kind of higher justification for their preferred style, so they come with these just-so stories that don’t have any real evidence behind them.
- quotemstr 9y agoAlso, it's local consistency is what matters, not global consistency. Developers can adjust to slightly different coding styles when they move to a new project. They're going to have to learn new abstractions, new bits of domain knowledge, and new coworker-interaction approaches anyway. Style is a very minor concern.
- greggman 9y agoThe word consistent is an issue in and of itself. You probably mean you think it's best when a style is applied consistently. But probably don't care that the style itself values consistency. The style linked above is not remotely consistent. Braces in different columns. Braces styles for functions different from non functions. if statement can have or into have braces. All extremely inconsistent
- quotemstr 9y agoITYM "regular", not "consistent".