Re: Package proposal
| From: | christophe blin | Date: | Mon, 04 Jul 2005 08:41:47 +0000 |
| Subject: | Re: Package proposal | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-38437@lists.php.net to get a copy of this message | ||
Hi all,
DB will only be an option (you can choose file or DB).
BTW, the library only do 1 SQL request and I do not think that 1 SQL request is more expensive than 1 file loading...
I am OK to name it Math_Convert. All I need is the answer to my account request (1 week now!). I do not know how can I submit the initial source code
Regards,
chris
Philippe Jausions wrote:
christophe blin wrote:-- _______________________________________________________________________________________ Tennaxia, www.tennaxia.com, société de services auprès des entreprises industrielles pour une gestion globale de l'environnement _______________________________________________________________________________________ Siège social : 6, rue Léonard de Vinci - 53001 Laval Cedex - Tél : 02 43 49 75 50 - Fax : 02 43 49 75 77 Agence Paris : 47, rue Servan - 75011 Paris - Tél : 01 43 57 17 05 - Fax : 08 25 19 19 61 Agence Lyon : Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE - Tél : 04 72 39 98 14 - Fax : 04 72 39 93 85 Les informations contenues dans ce message envoyées par TENNAXIA sont confidentielles et sont établies à l'attention exclusive de leurs destinataires. L'accès à ce message par toute autre personne n'est pas autorisé. Si vous n'êtes pas le destinataire de ce message, merci de le détruire et d'en avertir l'expéditeur : toute altération, copie, distribution ou toute action prise ou omise sont interdites et peuvent être illégales. The information in this message sent by TENNAXIA is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this message by anyone else is unauthorized. If you are not the intended recipient, please delete it and notify the sender : any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.Bertrand Mansion wrote:Chris, I see what you mean, but I think that would enlarge the scope of the package way too much. DB queries are quite expensive when compared to a simple file load. I feel that the way of handling the custom units should be left to programer of the application that package might be used. Otherwise any one choice you make for the package may not be suitable for everybody. Anyhow, this package would be a very good addition to PEAR. Probably named Math_Convert -Philippe1/ Why would this be bad design to store the informations in the database instead of storing them in a file ? Isn't it the goal of a db to store relationnal data ? Personnaly, I prefer to avoid the file storage because it introduces a lot of problem (permissions, end-of-lines, ...). 2/ I did not say the user can modify the units, I only said the user can _add_ units and this is slightly different... Example: the user want to add the unit "bananas" to allow him counting the bananas he is producing in his farm. He would do so by saying that bananas is equivalent to the unit '1' (which means quantity) then he can use bananas wherever he want to use a quantity.Current work : - allow the use of a database to store the units instead of using a file (adding unit will be then more simple and available to end-user)Useless and bad design IMO, the way Fahrenheit is converted to Celcius is not going to change so there is no need for a database. A simple PHP array should be enough, even for user-defined conversions.