From: Verdon V. <ve...@ve...> - 2005-05-07 03:18:55
|
Hi Eloi Thanks for the informative reply :) On 6-May-05, at 5:07 PM, Eloi George wrote: > Maybe I missed something in your description, but I don't think you > need a Signature class. The signatures themselves have no behavior - > they're just (un)verified email addresses. My description was oversimplified, there's a little more to them than that. Such as name, address, affiliation, comments, flags for 'may the signer be contacted' and 'allow signer's name to be public, id of petition the signature is related to'. The signatures have no behaviours per say, but it will be possible to get stats on # of verified, unverified, # per day. There will also be mechanisms for printing lists of name/address of verified signers, as well as sending one-time reminders to aged, unverified signatures. I'm also loosely thinking ahead to methods to send campaign letters and such. > The methods should stay on the Petition and the Petition > Administration levels. Code reuse issues aside, you should try to > keep the amount of classes used to a minimum. Web applications > require a more performance-centric approach to design than desktop > apps. If it can do really cool things, but only for 5 people at a > time then its worthless on the 'net. I'm all for bloat-free code and realize I may need to re-think my approach. I'm hoping to get off to as good a start as possible. > There's no concrete rule on when to use PHPWS_Item. It's all a matter > of your personal preferences and programming style. In my opinion, > PHPWS_Item should only be used when you don't care about memory usage > or execution time, and the class that you're making isn't so simple > that you're not using at least 70% of PHPWS_Item's methods, and not so > complex that you find yourself superclassing existing PHPWS_Item > methods to get it to work the way you need it to. Other opinions may > differ. Thanks for your opinion. It's appreciated and respected. I've tried writing both ways, and have read through a lot of other mods. It's good to hear the thoughts of others with a deeper experience than my own. regards, verdon > > -Eloi- |