Re: CS Clarifications

From: Date: Fri, 24 Sep 2004 14:37:43 +0000
Subject: Re: CS Clarifications
References: 1  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-1878@lists.php.net to get a copy of this message
Hi: On Fri, Sep 24, 2004 at 05:44:21AM -0500, Richard York wrote: > I have an open bug complaining about my use of static notation > internally in Mail_IMAP, that is > /within/ the object. It has been my philosophy to use static notation > rather than "$this->" in the object to make it more obvious which class > a method resides in. It depends. If the method is only supposed to be called statically, then static notation is necessary. If the method is supposed to be called via an instantiated object, $this is more appropriate. > 2nd question, I saw someone complained in a proposal for use of boolean > false in all uppercase, e.g. FALSE. There's no standard, but I've been told lower case is what's supposed to be used. I just went along with it. Considering that all documentation I've ever read uses uppercase, I think the docblocks should always use uppercase in order to improve readability. Upper or lower case in the code doesn't matter to me. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.pear.qa (#1878) next »