Re: Proposal Auth_WIKID Extra Comment (QA)

From: Date: Fri, 06 Apr 2007 16:13:17 +0000
Subject: Re: Proposal Auth_WIKID Extra Comment (QA)
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-46167@lists.php.net to get a copy of this message
That's ok :) They are defined as private in this case but used as public which was my main concern. Personally i'm a private person, however following most comments on previous and current proposals, there is a protected trend. Anyways my main concern was that the use of public when was marked as access private. On 4/6/07, Arnaud Limbourg <arnaud@limbourg.com> wrote:
David Coallier wrote: Hello all, this is an email to do extra QA on http://pear.php.net/pepr/pepr-proposal-show.php?id=321 First of all Greg, good work on the package, I really like the overall structure, the code is very clean, and I like the comments themselves and it looks good. However, I must add a couple points: The package is noted as PHP5, so the variable properties should be respected. I see in the documentor's code that all the variables access is noted as @access private, therefore, you should usually make the variables private $_isConnected instead of var $_isConnected; Because by default var is now E_STRICT compliant, however it will make the variables public. Also, making the variables private is not recommended as it makes them less flexible, therefore it is recommended to use * protected for pear packages. I would add that this advice does not make much sense. I mean that one should use private and protected when necessary, there are very good reasons to have a private property and not wanting any derived class using it. So the advice should be to use what makes sense in the design of the class and should be left to the developer to decide. ps: no offense david :) Arnaud.
-- David Coallier, Founder & Software Architect, Agora Production (http://agoraproduction.com) 51.42.06.70.18

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