PHP Adventures

For a from my perspective as C++/3D/multimedia/game/whatever programmer quite unusual project (will be released and announced here in a few weeks), I recently wrote a lot of PHP code. Although I became quite familiar with PHP during the last 8 years (my last bigger PHP related work was the game server of ds for example), this time it was a rather intensive experience, and I got to know a lot of the dark secrets and the impressive ugliness of this language.
Thousands of functions in the global scope, all with a different naming scheme, most of them doing the same as other functions, no real unicode support, dangerous side effects of its dynamic typing and ridiculous 'features' like this magic_quotes thing which escapes all content from a external variable sources. Funny are also some of the error messages: the programmer of the parser behind PHP obviously used hebrew for the names of some of the constants, and so PHP would write things like 'unexpected T_PAAMAYIM_NEKUDOTAYIM' which is really quite helpful. :)
But after all, the project is finished now and it was fun and interesting. Looking forward to announce the release of it, because recently quite a lot of the stuff I'm working on is secret an NDA-protected unfortunately.

six comments, already:

ever thought about using another programming language than php? ;)
e.g. ruby, a great language imo.
bakkdoor - 12 08 08 - 00:13

Almost anything is better than PHP ;)

Ruby’s great but a little slow (see Twitter’s scalability problems & resulting downtime). It’ll get there, e.g. once RoR actually uses a more recent version where they’ve started to resolve its performance problems. Or, if you don’t follow fads (a good thing IMO), Python is a good option, there are RoR-like frameworks for it such as Pylons and TurboGears and it’s proven to scale. Or even Java – despite all the FUD people spout about it being slow, on a webserver it scales way better than Ruby does – although it’s more suited to heavyweight enterprise apps than rapid developments.
steve () (link) - 12 08 08 - 00:30

Or jruby, which is ruby on the JVM. I have used at work for webapps and is faster than C ruby. :)
juantar - 12 08 08 - 00:41

yeah, thats the great thing about ruby. a great language and many available interpreters for different platforms. i really think its such a neat language :)
bakkdoor (link) - 13 08 08 - 03:57


trunks14 - 13 08 08 - 04:30

T_PAAMAYIM_NEKUDOTAYIM T_:: T_twice colon
PAAMAYIM Twice
NEKUDOTAYIM :
MasterGod () (link) - 14 08 08 - 22:02


Name:  
Remember personal info?
yes
no
Email (optional):
URL (optional):
Enter "layered" (antispam):
Comment:Emoticons / Textile

  ( Register your username / Log in )

Notify: Yes, send me email when someone replies.  

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.
Note: If you type in your email adress above, it will be visible to other visitors, although it will be hidden for bots using javaScript.