[TYPO3-dev] Fully Blown StdWrap - Check it out!

Joerg Wagner jwagner at digilog.de
Fri Mar 17 14:18:16 CET 2006


> Ah well, I recently hacked my way to a very large and poorly documented
> JavaScript-file - after that, PHP feels like a warm, safe place and 
> doesn't
> suck at all. ;-)

Hard to believe that you honestly mean that.
I would trade off any PHP-like syntax for JS syntax (or generally ECMA-262) 
at any time!

PHP:
$st = preg_replace('/(a*)(b*)(c*)/ig', '$3$1$2', impode(',', explode(';', 
$st)));

JS:
st = st.split(';').join(',').replace(/(a*)(b*)(c*)/ig, '$3$1$2')

We just have to accept that PHP has developped to be a suboptimal but 
widespread standard and as such has become very self stabilizing. This 
happens often and is in no way a sign for quality, elegance or good 
usability.
But considering the coverage that PHP has reached, one thing is sure:  I 
(and you) will have to live with it for many more decades to come.
--
Jörg Wagner
DigiLog multimedia 






More information about the TYPO3-dev mailing list