Re: Name for converter of units/currency
| From: | Chuck Hagenbuch | Date: | Sun, 07 Jan 2001 04:57:51 +0000 |
| Subject: | Re: Name for converter of units/currency | ||
| Groups: | php.pear | ||
| Request: | Send a blank email to php-pear+get-829@lists.php.net to get a copy of this message | ||
Quoting jmh3@linuxfreak.com:
> really though. currency is just another type of measurement. i know
> breaking it up like this seems logical in the sense that monitarywealty !=
> length for instance, but taking it farther mass != length each is it's
> own. if you are going to create a separate class for currency you should
> do it for each type of measure. the thin you are going to run into is when
> using compound units. say you have something that is 40$/ft you are going
> to have to break it up into $ then ft and convert the separately.
Well, I agree it should go in Numbers/. As for breaking it up, I can see it
both ways. I think if the class isn't too huge, leaving things together is
fine. But if the class gets large, it would make sense to split it up, and
measurements versus currency is as good a way to do it as anything... splitting
it into too many small parts could be as bad as one far too large file.
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
"If you can't stand the heat, get out of the chicken!" - Baby Blues