Python vs. Ruby vs. PHP
Posted: Sat Apr 22, 2006 3:22 pm
On the latest show Pat talked about usin python, I am a big fan of Python411 a python podcast that has become really popular. Python is by far the best general programming language. the big difference is basically the wsy the language is written makes a very clean and readable code. the huge ammount of modules and frameworks make it a developer paradise.
Python in general has develop at a faster rate than Perl and even Ruby. Even thought a lot of people bought into the ruby on rails thing, this is nothing but an API, a framework rather. There are many frameworks in python as well not just for web but for real programming, embedded systems/handhelds/web/robotics etc.
Comparing Ruby and Python to PHP has been a battle that has change a lot in the past. PHP was (and is) known as a web scripting language, most people havent used php-cli or build applications with php-gtk. This is why the development and appreciation keeps php on a very narrow corner. However there was a reason for this, and rely on php poor handling of objects.
PHP also had poor recognition of XML and make this really lagging vs Python powerful parsers -- PyXML and Ruby's REXML. PHP5 make significant advantages on this while still not a match for the previous new implementations and a huge supported community had made this possible.
PHP5 uses something called SimpleXML which is the way php can read and write xml. However like the name shows it, is simple, maybe too simple. The new object model also helped and the new PEAR modules might be good also check the PHPclasses API's on XML.
Python in general has develop at a faster rate than Perl and even Ruby. Even thought a lot of people bought into the ruby on rails thing, this is nothing but an API, a framework rather. There are many frameworks in python as well not just for web but for real programming, embedded systems/handhelds/web/robotics etc.
Comparing Ruby and Python to PHP has been a battle that has change a lot in the past. PHP was (and is) known as a web scripting language, most people havent used php-cli or build applications with php-gtk. This is why the development and appreciation keeps php on a very narrow corner. However there was a reason for this, and rely on php poor handling of objects.
PHP also had poor recognition of XML and make this really lagging vs Python powerful parsers -- PyXML and Ruby's REXML. PHP5 make significant advantages on this while still not a match for the previous new implementations and a huge supported community had made this possible.
PHP5 uses something called SimpleXML which is the way php can read and write xml. However like the name shows it, is simple, maybe too simple. The new object model also helped and the new PEAR modules might be good also check the PHPclasses API's on XML.