News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
The real difference between PHP and Python
March 22, 2007 @ 09:06:00

In the latest post to the SitePoint PHP Blog, Harry Fuecks takes a look at what he considers the real difference between PHP and Python.

Posting in the full realization of the futility of doing so, there's some PHP bashing (as usual) happening on reddit at the moment: PHP vs Python - the real difference, brought on by this mildly amusing image. While I can accept the points - technically it's actually much harder in handle errors uniformly in PHP and the community is less rich in computer scientists than Python - the corresponding flame war on reddit manages to miss a different point, which is easiest expressed in code.

He gives two sample scripts and asks what the real differences are. He answers his own question by way of saying that what matters between the two is how they're deployed (when it comes to error reporting):

Because PHP "resets" after each request ( see here or for much more detail here ) it's actually not always necessary to handle errors explicitly'"assuming there's not something fundamentally "broke" about your code and it's some kind of runtime error (e.g. db is down), it's often enough to just ignore the problem and wait for the system to "right itself" - nothing is going to leave PHP in a state it can't recover from.
0 comments voice your opinion now!
difference python error handling reset deployment difference python error handling reset deployment


blog comments powered by Disqus

Similar Posts

ServerGrove Blog: Deploying Symfony2 Projects on Shared Hosting with Capifony

Lukas Smith's Blog: One thumb up and two down (Zend_Http_Client)

Lorna Mitchell: How NOT to Design Your API

Jani Hartikainen's Blog: Handling errors in Zend Framework

SitePoint PHP Blog: PHP to the Rescue!


Community Events





Don't see your event here?
Let us know!


package tips introduction language zendserver install deployment laravel version series symfony bugfix framework interview community opinion release library api podcast

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework