[PEPr] +1 for XML::XML_Feed_Parser
| From: | Justin Patrin | Date: | Mon, 03 Oct 2005 17:05:46 +0000 |
| Subject: | [PEPr] +1 for XML::XML_Feed_Parser | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-40062@lists.php.net to get a copy of this message | ||
Justin Patrin (http://pear.php.net/user/justinpatrin) has voted +1 on the proposal for
XML::XML_Feed_Parser.
Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=295
Vote information:
http://pear.php.net/pepr/pepr-vote-show.php?id=295&handle=justinpatrin
This vote is conditional. The condition is:
Please use ' instead of " for any strings which do not have backslash expressions (\n) or
variables in them.
Please create and use a new Exception class for this package which extends PEAR_Exception (see
Matthew's comment).
Please don't add try/catch blocks which only catch and re-throw exceptions. This is useless and
confusing. (Such as in Parse.php __construct(), but I also saw this in most of the other files)
Please use true instead of TRUE.
(Optional)
I would prefer using ' for all strings except those with backslash expressions as variable
interpolation is more expensive and less visible than concatenation.
Please use ++$var instead of $var++ unless you must use a post ++. Prepending it is slightly more
efficient and is less prone to error.
The valid() function in Parser.php could be replaced with:
return $this->current_item < $this->feed->numberEntries;
--
Sent by PEPr, the automatic proposal system at http://pear.php.net