hi,
hi,
Hallo,
Es kommt mir so vor, als würde hier auf ungeheuer komplizierte Art und Weise ein Designfehler von PHP ausgebügelt, nämlich dass es keine privaten Funktionen (also in Funktionen gekapselte Unterfunktionen) gibt. Die fehlen mir oft!
PHP ist eine Scheißsprache, ja, und mit dem Verstreuen von ein wenig funktionalem Zucker wird sie nicht angenehmer. ;)
"The arguments that PHP is an ugly language are half-truths, PHP only produces ugly code if you suck at coding and don’t care how you go about things, it’s easy to keep PHP code clean if you care."
...
"PHP is one of the most mature web languages around and while it might not enforce strict coding guidelines and set ways of doing things (like function naming and indentation), there are certainly no issues you’ll come across that are the fault of the PHP language itself that will prevent you from deploying something awesome *cough* Facebook *cough* Wikipedia *cough* a lot of Yahoo! projects *cough* WordPress. People who call PHP a bad language are merely wasting their time stating the obvious, many people who use it (like me) acknowledge that it sucks, the ability to mix HTML and PHP alone makes me vomit inside of my head."
"Those 4 reasons are enough for me to keep PHP as my primary language. I do know and actively use Python and server-side JS (Node.JS specifically), as well as a number of other languages. But I stick with PHP for my main projects because, while it's not perfect, it works..."
http://blog.ircmaxell.com/2012/04/php-sucks-but-i-like-it.html
mfg
tami