You are here: Re: Object Oriented PHP « PHP Programming Language « IT news, forums, messages
Re: Object Oriented PHP

Posted by Tony Marston on 06/24/06 21:56

"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
news:25Sdne4XpP1UCADZnZ2dnUVZ_vmdnZ2d@comcast.com...
> Tony Marston wrote:
>> "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.
>>
>
> Actually, things like private declarations are very important. They are
> unimportant only to those who don't understand OO programming - or those
> who are sloppy in their implementations.

You don't *need* private declarations. Code will work just as well without
them.

--
Tony Marston

http://www.tonymarston.net
http://www.radicore.org

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация