On Wed, May 21, 2025 at 8:27 AM Rowan Tommins [IMSoP] <imsop....@rwec.co.uk>
wrote:

>
> So if we can come up with a solution where only the WordPress plugins need
> to be changed, and you can use whatever dependencies you want without
> waiting for them to be changed to a new way of working, is that not a good
> thing?


Yes, and that's all I think is needed here. I could modify plugin code if I
needed to. The majority of developers capable of doing this have left
WordPress in disgust - I did too, but I needed the work. Since I have to
work with it I'd like to make it more sane. One major step in that
direction is the Timber library which bridges WP to Twig and gets rid of
that god damned loop architecture they think is the bees knees but in
reality is an antipattern and untestable spaghetti nightmare.


> I've tried several times to explain why I think Linux containers are a
> good analogy; I'm not sure if you didn't understand, or just didn't agree,
> so I don't know what else I can say.
>

I have no disagreement with that, but it's an implementation detail. I'm
not there yet - I'm just trying to describe what I think is needed from
outside the engine.


> Looking closely, I see I did make one honest mistake: in your example, the
> WordPress plugins are A and B, not B and C. So my sentence should have read
> "A and B are one kind of thing, but D is a different kind of thing".


That's what set me off the most and I over-reacted. To you and to the list
at large, I apologize. I'm just frustrated - I feel like a five year old
trying to explain a problem to a physicist.



On Wed, May 21, 2025 at 6:09 PM Hammed Ajao <hamieg...@gmail.com> wrote:

>
> Anyone familiar with C++'s friend keyword? It’s not a direct replacement
> for modules, but it solves similar problems — allowing trusted classes or
> functions to access private/protected members without making them public.
>
>
Friend has been brought up before and I believe it was in at least one RFC
before and voted down. That doesn't mean the issue can't be revisited, but
look into the archive and see if my memory is right and if so why was it
voted down before? IIRC it's tied to the fact PHP doesn't have a notion of
namespace level visibility. Classes and functions outside of classes must
be public in the current architecture.

Reply via email to