Re: Mod 10 for Payment package?
| From: | Bertrand Mansion | Date: | Wed, 17 Sep 2003 16:15:50 +0000 |
| Subject: | Re: Mod 10 for Payment package? | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-21644@lists.php.net to get a copy of this message | ||
<joe@joestump.net> wrote :
> My only point is this: why have a great error handling class if you
> aren't going to use it? PEAR should push things up a notch as far as
> quality and I think that when I'm coding a PEAR_Error class offers so
> much more to me as a coder than true/false does.
In order to have Validate compatible with other packages, whether they use
pear or not, it's better to have each validation methods return a boolean.
For example, QuickForm users can use the Validate package to validate a
date, a credit card, etc.
The logic is : is my data valid, yes or no ?
We don't need or want to know why.
Furthermore, using PEAR_Error is against the Keep It Simple principle.
Bertrand Mansion
Mamasam