On 28 January 2011 17:15, Colin Guthrie gm...@colin.guthr.ie wrote:
OK, so it's a Friday hence a random debate
What is preferred for class methods?
class foo
{
static public function bar(){}
public static function wibble(){}
}
??
All methods are valid, but are some more valid
From: Richard Quadling
On 28 January 2011 17:15, Colin Guthrie gm...@colin.guthr.ie wrote:
OK, so it's a Friday hence a random debate
What is preferred for class methods?
class foo
{
static public function bar(){}
public static function wibble(){}
}
??
All methods are valid,
On Mon, Jan 31, 2011 at 3:51 AM, Richard Quadling rquadl...@gmail.comwrote:
I've just done a quick scan of all my methods ...
I just did the same scan on my code, and the clear majority was
private abstract final function
YMMV
David
I suppose it comes down to preference of the programmer, since there is no
standardized rule for it, people adapt it as they find it convenient at the
time.
On Mon, Jan 31, 2011 at 1:52 PM, David Harkness
davi...@highgearmedia.comwrote:
On Mon, Jan 31, 2011 at 3:51 AM, Richard Quadling
OK, so it's a Friday hence a random debate
What is preferred for class methods?
class foo
{
static public function bar(){}
public static function wibble(){}
}
??
All methods are valid, but are some more valid than others? :p
Checking ZF:
[colin@jimmy Zend (working)]$ cgrep public
I personally like scope static fucntion. Coming from C# it just makes
more sense to me.
JF.
On 28/01/2011 12:15, Colin Guthrie wrote:
OK, so it's a Friday hence a random debate
What is preferred for class methods?
class foo
{
static public function bar(){}
public static function
Having learned java before even knowing what php was (yeah I'm a noob in
both) I prefer scope static function.
On Fri, Jan 28, 2011 at 12:20 PM, Fernando ferna...@ggtours.ca wrote:
I personally like scope static fucntion. Coming from C# it just makes more
sense to me.
JF.
On 28/01/2011
On Fri, Jan 28, 2011 at 10:35 AM, Mujtaba Arshad mujtab...@gmail.comwrote:
Having learned java before even knowing what php was (yeah I'm a noob in
both) I prefer scope static function.
I learned Java first, too, and also prefer the scope first. I place a scope
on every method, so I'd rather
8 matches
Mail list logo