Re: Name for converter of units/currency
| From: | Jon Parise | Date: | Sun, 07 Jan 2001 20:10:27 +0000 |
| Subject: | Re: Name for converter of units/currency | ||
| References: | 1 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-842@lists.php.net to get a copy of this message | ||
On Sun, Jan 07, 2001 at 02:27:20PM -0500, Chuck Hagenbuch wrote:
> > that was just the first example that popped into my head, and it's not the
> > only instance where it would be useful. it's up to you guys. when i think
> > of units it really doesnt matter what i am measureing-i usually normalize
> > everything and make it dimensionless anyway. it just seems silly to me to
> > stick all measurement forms into one class except monitary measurement.
>
> So, seperate it into Numbers/Currency.php for money, Numbers/Temperature.php
> for temperature, Numbers/Volume.php for volumes, Numbers/Distance.php for
> distances... That keeps the classnames a reasonable length, the classes a
> reasonable size, and breaks things down pretty well.
Agreed. That way, developers will only have to import the conversion
routines they need, too.
--
Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Science House
Member