Re: Method naming schemes for PEAR
| From: | Mika Tuupola | Date: | Fri, 19 Sep 2003 16:55:50 +0000 |
| Subject: | Re: Method naming schemes for PEAR | ||
| References: | 1 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-201@lists.php.net to get a copy of this message | ||
On Fri, 19 Sep 2003, Wolfram Kriesing wrote:
> 1.
> getOrderBy() get the current orderBy-clause
> addOrderBy(x,y) add another orderBy-clause
> resetOrderBy() reset the order clause
>
> 2.
> orderBy() does the same as getOrderBy()
> orderBy(x,y) does the same as addOrderBy(x,y)
> orderBy(null) does the same as resetOrderBy()
> Should something like this be decided for PEAR? I think so.
> And btw. i am in favour or 1, simply because the method name clearly
> states what this method does.
Definetily in flavour of 1. PEAR should be easy to use
and learn. If we only want to write clever code we
should be using Perl ;)
--
Mika Tuupola http://www.appelsiini.net/~tuupola/