🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.vms
Article #188

Re: PHP "Features"

#188
From: Dan Cross
Date: Sun, 15 Nov 2026 21:00
48 lines
2106 bytes
In article <11da8s3$25hpa$4@dont-email.me>,
Arne Vajhøj <arne@vajhoej.dk> wrote:
>On 10/26/2026 9:21 PM, Dan Cross wrote:
>> term% ruby
>> class A
>>    def foo
>>      bar
>>    end
>>
>>   private
>>    def bar
>>      puts "Hello from A's bar"
>>    end
>> end
>>
>> class B < A
>>   private
>>    def bar
>>      puts "Hello from B's bar"
>>    end
>> end
>>
>> a = A.new
>> a.foo
>> b = B.new
>> b.foo
>> Hello from A's bar
>> Hello from B's bar
>
>> In *this* language, `private` doesn't mean what it means in C++.
>
>In Ruby it means object private instead of class private. And as
>demonstrated in my other post then it is a OO encapsulation
>disaster.
>
>But the second example quoted here is actually not different from C++.
>Because C++ interprets visibility as just that and does not
>include overrideability.

I think you missed the point.  If you want to criticize the
author of, "PHP: a Fractal of Bad Design" for "not knowing OO"
because of what they wrote about `private` methods, then you'd
better know what they were referring to.  Consider that,
perhaps, that author _may_ know just a little bit more than you
do about OO.

	- Dan C.
Technical Details
Message-ID: <11dd6gi$o1g$1@reader2.panix.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
References: <11bcbi1$k068$1@dont-email.me> <11bjm3a$i12$1@reader2.panix.com> <11bouab$2dh$1@reader2.panix.com> <11da8s3$25hpa$4@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
From: cross@spitfire.i.gajendra.net (Dan Cross)
Newsgroups: comp.os.vms
Subject: Re: PHP "Features"
Date: Sun, 15 Nov 2026 21:00:02 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <11dd6gi$o1g$1@reader2.panix.com>
References: <11bcbi1$k068$1@dont-email.me> <11bjm3a$i12$1@reader2.panix.com> <11bouab$2dh$1@reader2.panix.com> <11da8s3$25hpa$4@dont-email.me>
Injection-Date: Sun, 15 Nov 2026 21:00:02 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
	logging-data="24624"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: cross@spitfire.i.gajendra.net (Dan Cross)