Re: init() method

Matthias Nothhaft <[email protected]> Sun, 11 Dec 2005 20:09:03 +0100
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>
Lukas Kahwe Smith schrieb:
> Matthias Nothhaft wrote:
> 
>> By the way, it would be very nice if you could re-order some methods so
>> that public methods are first and private methods at the end of the
>> LiveUser class to make it more readable?
> 
> 
> Well I think the methods are currently mostly ordered in the way they
> get called or used. So any method is defined before its used. It works
> for me ;-)
It is a good coding style to define classes and functions before they
are used - most languages require that. But in class/object context it
is a better style to order by public/private first.

Ok, I will propose a coding standard RFC. ;-)


Regards,
Matthias