Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2013-08-24 11:19:07

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Kickstarter-esque project for Textpattern 4.6

Gocom wrote:

I’ve just got ‘containers’ to the core, so it should definitely make it easier for end-developers to access the more ‘modern’ classes. It’s almost like calling your procedural function, expect that you can chain. E.g.

echo Txp::get('TypeString', ' Hello World! ')->trim()->replace(' ', '&')->lower()->html();

To me, that doesn’t seem to be any simpler or faster than:

echo htmlspecialchars(strtolower(str_replace(' ', '&', trim(' Hello World! '))));

Now if the container just had views and no visible factory. But PHP 5.2.0 doesn’t have neither lambdas, static binding nor closures. The most advanced stuff I can use are interface signaling and some reflection. So, factories and interface templates it is.

Wait, what?… lots of words, but I have no idea what you just said. Which probably is more an indication of my lack of knowledge of “modern” OO programming than a opinion of your work. I think the barrier for contributing to TXP development now is much higher than it used to be. The whole OO versus procedural programming seems to me to be more a matter of religion than that one is better or worse than the other.

Offline

#17 2014-08-26 14:29:51

towndock
Member
From: Oriental, NC USA
Registered: 2007-04-06
Posts: 335
Website

Re: Kickstarter-esque project for Textpattern 4.6

This is a one year anniversary of the above thread. Any updates from the dev team?

From afar, it feels like in the pursuit of perfect code, we have no code at all. I’m sure that isn’t literally true, but the pace of development seems very different.

ruud wrote #274754:

I think the barrier for contributing to TXP development now is much higher than it used to be. The whole OO versus procedural programming seems to me to be more a matter of religion than that one is better or worse than the other.

Bloke wrote #274747:

I’m a hacker at heart, and hackers don’t always do things right, they just get them done.

Offline

Board footer

Powered by FluxBB