Re: Mail_Mbox

From: Date: Sun, 29 Dec 2002 18:36:37 +0000
Subject: Re: Mail_Mbox
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11926@lists.php.net to get a copy of this message
Hello, As Pierre Alain said, you *should* have waited +5 to release it. It looks that PEAR is becoming a chaos if nobody waits for permissions. Anyway you have +1 for me. But please, before making a new release, TEST it ! Thank you. -- Regards. M.CHAILLAN Nicolas nicos@php.net www.WorldAKT.com Hébergement de sites internets. "Alan Knowles" <alan@akbkhome.com> a écrit dans le message de news: 3E0D3550.6040205@akbkhome.com... > Jon Parise wrote: > > >On Fri, Dec 27, 2002 at 06:49:15PM -0300, Roberto Bert wrote: > > > > > > > >>I fixed it: > > >>>>http://opensource.under.com.br/Mail_Mbox/Mail_Mbox-0.1.1.tgz > >> > >> > > > >I still see a number of stylistic problems: > > > >1. The comment spacing is inconsistent, e.g.: > > > > * @param int $resourceId Mbox resouce id created by open > > * @param int $message The number of Message > > * @return string Return the message else pear error class > > > >2. Don't attempt to line up long assignment statements such as: > > > > $bytesStart = $this->_resources[$resourceId]["messages"][$message][0]; > > $bytesEnd = $this->_resources[$resourceId]["messages"][$message][1]; > > > >3. Attempt to wrap as much code to 80 columns as possible. Going > > beyond 80 characters for a line of code is acceptable in most > > cases, but comments should always break by the 80 column mark. > > > >4. Use XHTML-compliant tags. For example, <br /> should be used > > instead of <br>. > > > > printf("%08d=%08d<br>",$bytesStart,$bytesEnd); > > > sorry, I havent looked at the code, but by why is it outputting HTML? - > is it going to be messy if you used it on the cli. > > > > >5. Please add a space after each comma. The previous example > > demonstrates a case where spaces should be added. > > > >6. I generally prefer the method name "remove" to the name "delete" > > because "delete" is the name of an existing function and may become > > a reserved keyword in the future. > > > actually the delete man page says 'this is a dummy entry'.. > I think the idea of using it as a keyword in ZE2 got killed :) - (partly > due to the potential to break alot of code..) > no idea what the context is, but if it is to delete a mail.. - it does > sound about as good as you can get.. > > > > >7. If you're going to use @access tags, please provide them for all of > > the methods. > > > >8. Please review your grammar and spelling in the comments. I > > understand English may not be your native language, but misspellings > > such as "lenght" should definitely be fixed. > > > /me runs and hide with all the typos in my code :) > > > > >Overall, the code looks good. I hope you don't get too bad an > >impression from my comments. I just want to see the resulting code be > >as good as possible. > > > > > > > > > -- > Can you help out? > Need Consulting Services or Know of a Job? > http://www.akbkhome.com > >

« previous php.pear.dev (#11926) next »