I was just searching for differences between PHP and Python to get an overview on the state of both languages and how to convert some work from PHP to Python. I didn’t get much answers to the latter but I found a rather amusing article on PHP vs Python.

This page compares the differences and there’re some retorts and counter retorts.

PHP has schizophrenic tableau of function names. The builtin library has a wide variety of naming conventions. There are no namespaces, so functions often have prefixes to denote their source (but often not). Functions are often placed into classes to simulate namespaces.

To the above someone retorts that PHP 5.3 offers namespaces only to be countered by someone else to highlighted that PHP 5.3 has not been released.

But the funniest is still this:

Python has excellent introspection

Someone retorted that PHP 5 has got reflections already. And a Python supporter came in to highlight, “We said excellent introspection”.

[ad#highlight]

With regards to IDE, I still think PHP has better IDEs available. I don’t really use all the debugging feature but I highly regard syntax highlighting as an important part of an IDE and I just find PHP IDEs look prettier in general. I use pyDev in Eclipse, it does okay highlights although I love to see more color customizations.

With regards to web development, I still fair better in PHP I guess. But one thing I hate about PHP is they have like unlimited functions and sometimes there’re underscores in their functions, sometimes there aren’t (e.g. image_type_to_extension and imagecreatefromjpeg). They’re generally not function names that you can remember off your head. However, it’s good to point out that PHP is very well documented and it makes things easy to find online. Python, on the other hand, still lacks a huge community.

comments powered by Disqus