|
Posted by Tony Marston on 06/24/06 08:49
"NC" <nc@iname.com> wrote in message
news:1151127795.486389.113090@b68g2000cwa.googlegroups.com...
> 427SOHC wrote:
>>
>> If I haven't worked with OOP much would PHP be a safe
>> starting point, or is there a better programming language
>> to start with?
>
> If you haven't worked with OOP before, start by learning OOP in the
> language you otherwise know well. Once you understand the basic
> concepts (encapsulation, inheritance, polymorphism, etc.), you will be
> able to ask intelligent questions about how those concepts are
> implemented in other languages.
>
> Also, note that PHP 4 and PHP 5 have different object models; the one
> in PHP 5 is more in line with what you find in other languages, while
> the one in PHP 4 is simpler, but more restrictive.
"More restrictive" is a point of view. It is possible to write OO code in
PHP 4 that also runs in PHP 5, as I have proved with my sample application
and later my full-blown framework.
AFAIAC the extra OO features in PHP 5 are nothing more than eye candy as
they do not provide any additional functionality which is worthy of merit.
They were only included to appease the OO purists.
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
Navigation:
[Reply to this message]
|