""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> On 10/3/07, Tony Marston <[EMAIL PROTECTED]> wrote:
>>
>>
>> Encapsulation is NOT data hiding.
>>
>> I repeat, encapsulation has absolutely nothing to do with data hiding.
>
>
> http://en.wikipedia.org/wiki/Information_hiding
>
> encapsulation is  facilitated  via ppp in object oriented programming
> languages.
> i suggest you read this article on wikipedia and pickup an entry level 
> text
> on oop.

Encapsulation is NOT data hiding. Take a look at

http://www.javaworld.com/javaworld/jw-05-2001/jw-0518-encapsulation.html
http://www.itmweb.com/essay550.htm
http://c2.com/cgi/wiki?EncapsulationIsNotInformationHiding

> you might also want to read about how interfaces are used because it 
> sounds
> like youre confused.  they are not needed to call methods, they provide an
> alternate mechanism for polymorphism.

But I don't NEED interfaces in PHP. My code runs perfectly witout them, 
therefore I see no reason to use them. They require extra work for no 
benefit, so there is no point in using them. I do not need an alternatve 
method for polymorphism as the one I currently use is more than adeqate.

Interfaces are used in other languages because of deficiencies in those 
languages. PHP does not suffer from those deficiencies, therefore does not 
need interfaces in order to function.

>  you can find the basics in an entry level
> text, and more sophisticated topics in a design patterns text.
> i recommend the heads first book.

Design patterns are over-rated and over-used. I get more mileage out of 
transaction patterns.

> yes my opinion is php4 is outdated.  i think ive mentioned the various
> weaknesses
> enough times in this thread and on this list.  anyway, its just a matter 
> of
> time unitl
> php4 fades into antiquity.  if your code doesnt use ppp so it can be
> backwards
> compatible w/ php4 then let me extend my condolences.

OO code does not need private/protected/public in order to function. It does 
not add any functionality, it merely imposes restrictions. PPP is totally 
cosmetic, a complete red herring, and a waste of time as far as I am 
concerned.

-- 
Tony Marston
http://www.tonymarston.net
http://www.radicore.org

> -nathan
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to