<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Python or PHP?</title>
	<atom:link href="http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/</link>
	<description>the personal blog of Stuart Colville covering modern web development techniques and best practices</description>
	<lastBuildDate>Thu, 09 Feb 2012 02:58:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Clever</title>
		<link>http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/comment-page-1/#comment-66813</link>
		<dc:creator>Clever</dc:creator>
		<pubDate>Wed, 14 Dec 2011 22:31:09 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/#comment-66813</guid>
		<description>In my opinion PHP is a easier language to learn but its really powerful. I have been coding in php for almost 2 years and found it very good. Python on the other hand is a really powerful language but not so easy to learn. Python has a better approach on security that php. But if i have a option between python and php i would chose php.</description>
		<content:encoded><![CDATA[<p>In my opinion PHP is a easier language to learn but its really powerful. I have been coding in php for almost 2 years and found it very good. Python on the other hand is a really powerful language but not so easy to learn. Python has a better approach on security that php. But if i have a option between python and php i would chose php.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Taylor</title>
		<link>http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/comment-page-1/#comment-66490</link>
		<dc:creator>Jesse Taylor</dc:creator>
		<pubDate>Wed, 09 Mar 2011 22:28:07 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/#comment-66490</guid>
		<description>I&#039;ve recently been thinking about migrating to Python from PHP as well. I&#039;ve always hated PHP, and have only used it out of necessity. Python is by no means perfect, but it&#039;s clearly a superior language to PHP. Anyhow, the comments here were very helpful and made for interesting reading.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve recently been thinking about migrating to Python from PHP as well. I&#8217;ve always hated PHP, and have only used it out of necessity. Python is by no means perfect, but it&#8217;s clearly a superior language to PHP. Anyhow, the comments here were very helpful and made for interesting reading.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drupal developer</title>
		<link>http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/comment-page-1/#comment-65667</link>
		<dc:creator>Drupal developer</dc:creator>
		<pubDate>Thu, 01 Jul 2010 01:08:32 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/#comment-65667</guid>
		<description>I wrote PHP python java Erlang.
I think PHP is my favorite.</description>
		<content:encoded><![CDATA[<p>I wrote PHP python java Erlang.<br />
I think PHP is my favorite.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/comment-page-1/#comment-64843</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Mon, 05 Jan 2009 13:23:19 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/#comment-64843</guid>
		<description>I started off with PHP at version 4 about 5 years ago, from nothing and it was a great way to learn how to program as object oriented concepts got introduced into the language, but now as I mature as a programmer and have found php to be a bit frustrating as I need to deliver more and more professional solutions in less time. I have been inspired by the django approach though and will now take the plunge and download and intall everything to build my first django site on python. Cross your fingers and wish me luck!</description>
		<content:encoded><![CDATA[<p>I started off with PHP at version 4 about 5 years ago, from nothing and it was a great way to learn how to program as object oriented concepts got introduced into the language, but now as I mature as a programmer and have found php to be a bit frustrating as I need to deliver more and more professional solutions in less time. I have been inspired by the django approach though and will now take the plunge and download and intall everything to build my first django site on python. Cross your fingers and wish me luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mozey</title>
		<link>http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/comment-page-1/#comment-64600</link>
		<dc:creator>mozey</dc:creator>
		<pubDate>Tue, 07 Oct 2008 03:05:11 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/#comment-64600</guid>
		<description>I have been coding in both languages. Short answer is, PYTHON.</description>
		<content:encoded><![CDATA[<p>I have been coding in both languages. Short answer is, PYTHON.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/comment-page-1/#comment-63841</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Thu, 03 Jan 2008 21:27:44 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/#comment-63841</guid>
		<description>I&#039;ve just attempted to use a python sample program on 3 of the 5 servers I use for PHP applications.  All I got was a list of the sample text.  I named the program &#039;sample.py&#039; and on my PC the little green snake appears.

Until the hosting servers I use support Python out of the box, like they do with PHP, there is no question which language I prefer - PHP.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve just attempted to use a python sample program on 3 of the 5 servers I use for PHP applications.  All I got was a list of the sample text.  I named the program &#8216;sample.py&#8217; and on my PC the little green snake appears.</p>
<p>Until the hosting servers I use support Python out of the box, like they do with PHP, there is no question which language I prefer &#8211; PHP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/comment-page-1/#comment-63745</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Tue, 04 Dec 2007 15:00:03 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/#comment-63745</guid>
		<description>Both have their advantages and disadvantages, but I think if PHP included namespaces, cleaned up their function naming conventions - or introduced one, and moved a lot of the default functions off into namespaces, then PHP will become rather untouchable, I feel.</description>
		<content:encoded><![CDATA[<p>Both have their advantages and disadvantages, but I think if PHP included namespaces, cleaned up their function naming conventions &#8211; or introduced one, and moved a lot of the default functions off into namespaces, then PHP will become rather untouchable, I feel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Colville</title>
		<link>http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/comment-page-1/#comment-63736</link>
		<dc:creator>Stuart Colville</dc:creator>
		<pubDate>Fri, 30 Nov 2007 15:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/#comment-63736</guid>
		<description>@Stuart: cheers for the tip I&#039;ll take a look at that. Sounds like the best solution for quick experiments.</description>
		<content:encoded><![CDATA[<p>@Stuart: cheers for the tip I&#8217;ll take a look at that. Sounds like the best solution for quick experiments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Langridge</title>
		<link>http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/comment-page-1/#comment-63733</link>
		<dc:creator>Stuart Langridge</dc:creator>
		<pubDate>Fri, 30 Nov 2007 08:34:20 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/#comment-63733</guid>
		<description>It is pretty easy to just chuck up a Python file; just make it a CGI. It&#039;s slower, of course, but just name it whatever.cgi, stick AddHandler cgi-script .cgi in your .htaccess, and use Python&#039;s cgi modile to get form data. Pow, done. I do this all the time for small stuff.</description>
		<content:encoded><![CDATA[<p>It is pretty easy to just chuck up a Python file; just make it a CGI. It&#8217;s slower, of course, but just name it whatever.cgi, stick AddHandler cgi-script .cgi in your .htaccess, and use Python&#8217;s cgi modile to get form data. Pow, done. I do this all the time for small stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Colville</title>
		<link>http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/comment-page-1/#comment-63731</link>
		<dc:creator>Stuart Colville</dc:creator>
		<pubDate>Thu, 29 Nov 2007 15:04:01 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/11/27/python-or-php/#comment-63731</guid>
		<description>@everyone: There&#039;s been some excellent points made above, thanks for sharing your views.

Up until now I&#039;ve used PHP much more for web stuff but I am really interested in being able to play with using Python for simple scripts on the web. Normally I tend to resort to using PHP for this as it&#039;s just so much quicker. I really wish there was a quick way to be able to bung a .py file up onto a web-server without having to think about it.

Probably what I need to do is look at the Django handler and then write something generic suited for this task; if anyone has any good pointers in this area then please let me know, I&#039;ve no doubt someon has already done this.

For bigger web-apps I&#039;ve been using Django. The more that I use it the more I love it, it&#039;s simple extensible and well thought out. It&#039;s great to use something that allows you to get on with building the interesting parts of your application. In addition I&#039;m impressed with how easy it is to add to the generic stuff that&#039;s built-in. Part of this is purely down to Python&#039;s flexibility.

I like the feel of coding in Python much more than PHP; partly this is down to syntax, but also idiom.
	Although some idioms seem a little daunting at first I&#039;ve grown to really appreciate them. I now find myself spending a little longer until I find a more &#039;Python&#039; way of expressing something. I think all of this adds up to making Python code much more consistent overall and less mutated by people&#039;s own coding preferences. Naturally the enforced indentation seems strange at first I&#039;ve come to love it as it makes code so much more readable.

On the whole for me the Python bug has really bitten. Since creating TweetyPy as a fun project for learning the language (I&#039;m currently working on a complete re-write) I&#039;m really sold on using it for everything I can. I&#039;ve still got time for PHP and naturally being the chosen server-side scripting language at YAHOO I&#039;ll be continuing to use it for the foreseeable, however, at every opportunity where Python can be used and it makes sense to do so, Python is my preference.</description>
		<content:encoded><![CDATA[<p>@everyone: There&#8217;s been some excellent points made above, thanks for sharing your views.</p>
<p>Up until now I&#8217;ve used PHP much more for web stuff but I am really interested in being able to play with using Python for simple scripts on the web. Normally I tend to resort to using PHP for this as it&#8217;s just so much quicker. I really wish there was a quick way to be able to bung a .py file up onto a web-server without having to think about it.</p>
<p>Probably what I need to do is look at the Django handler and then write something generic suited for this task; if anyone has any good pointers in this area then please let me know, I&#8217;ve no doubt someon has already done this.</p>
<p>For bigger web-apps I&#8217;ve been using Django. The more that I use it the more I love it, it&#8217;s simple extensible and well thought out. It&#8217;s great to use something that allows you to get on with building the interesting parts of your application. In addition I&#8217;m impressed with how easy it is to add to the generic stuff that&#8217;s built-in. Part of this is purely down to Python&#8217;s flexibility.</p>
<p>I like the feel of coding in Python much more than PHP; partly this is down to syntax, but also idiom.<br />
	Although some idioms seem a little daunting at first I&#8217;ve grown to really appreciate them. I now find myself spending a little longer until I find a more &#8216;Python&#8217; way of expressing something. I think all of this adds up to making Python code much more consistent overall and less mutated by people&#8217;s own coding preferences. Naturally the enforced indentation seems strange at first I&#8217;ve come to love it as it makes code so much more readable.</p>
<p>On the whole for me the Python bug has really bitten. Since creating TweetyPy as a fun project for learning the language (I&#8217;m currently working on a complete re-write) I&#8217;m really sold on using it for everything I can. I&#8217;ve still got time for PHP and naturally being the chosen server-side scripting language at YAHOO I&#8217;ll be continuing to use it for the foreseeable, however, at every opportunity where Python can be used and it makes sense to do so, Python is my preference.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

