4 ms·
The two styles work because they are not being mixed with their opposite. A cached shed optimization is what makes working with others bearable.
by remline 9y ago
The two styles work because they are not being mixed with their opposite. A cached shed optimization is what makes working with others bearable.
- Analemma_ 9y agoThat’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".