4 ms·
PSR-2 isn't trying to say that there is one correct answer. Instead they're trying to provide a single answer from the many valid possibilities. "When various
by robertpateii 14y ago
PSR-2 isn't trying to say that there is one correct answer. Instead they're trying to provide a single answer from the many valid possibilities.
"When various authors collaborate across multiple projects, it helps to have one set of guidelines to be used among all those projects"
- chrismsnz 14y agoExactly, this is what infuriates me about the arguments and whining against PSR-2. Spaces, Tabs, OTBS, whatever. It doesn't matter which one was chosen, just that something was chosen. Ask the Pythonista's what PEP8 did for their developer's ecosystem. Also it's important to note that that PSR-2 was based off already existing coding standards like Zend's and Symfony's.
- lukifer 14y agoAnd what do you do with all the coders like me who would refuse to change their habits? Does the Python community have tabs holdouts who are github lepers because no one wants their code "infected"? (I don't do much in Python, I actually don't know what the community norms are.) I think it's silly to pursue per-language consistency; it's a pipe-dream that just leads to more religious wars over minutia. Per-project (or per-organization) more than suffices.
- FixThisPOSSite 14y ago"Does the Python community have tabs holdouts who are github lepers" This actually happens? People who don't understand tabs sure as hell shouldn't be lecturing other people about using them. Infantile.
- batista 14y ago>And what do you do with all the coders like me who would refuse to change their habits? Reformat their code. As for "per language consistency", Go does it just fine...
- lukifer 14y agoI'm not saying it shouldn't exist; I'm saying it shouldn't be recommended at all as part of "PHP The Right Way". It mixes up arbitrary personal preferences with universal best practices.