[PEPr] Comment on RFC::Coding standard enhancements
| From: | Helgi �ormar �orbj�rnsson | Date: | Sun, 16 Mar 2008 13:21:56 +0000 |
| Subject: | [PEPr] Comment on RFC::Coding standard enhancements | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-49433@lists.php.net to get a copy of this message | ||
Helgi Þormar Þorbjörnsson (http://pear.php.net/user/dufuz) has commented on the proposal for
RFC::Coding standard enhancements.
Comment:
To answer Jeff a bit, this will be thought more of as a recommended
practice in X situation and not pure standard, not sure how the code
sniffer deals with that, via warnings perhaps ?
The point being, I think it's better we show people via examples and
recommended ways how to solve these code smells since we can't really
expect them to read couple of patterns books before submitting code ;-)
That being said I'd like to include a reference to said books and chapters
in the manual part that talks about these code smelling beautification,
kinda like "if you are in situation X then look at these books and patterns
but if things fail then at least try to make your code more readable by
using any of these formatting approaches"
I also think it's important we don't say one way is the golden way,
providing multiple examples per each category Christian listed, like people
have been doing, this way people can more pick according to their style.
Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=538
--
Sent by PEPr, the automatic proposal system at http://pear.php.net