<?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"
	>
<channel>
	<title>Comments on: PHP does NOT suck, and here&#8217;s why</title>
	<atom:link href="http://frankkoehl.com/2008/05/php-does-not-suck-and-heres-why/feed/" rel="self" type="application/rss+xml" />
	<link>http://frankkoehl.com/2008/05/php-does-not-suck-and-heres-why/</link>
	<description>The more you know, the more you don't know</description>
	<pubDate>Tue, 02 Dec 2008 12:22:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>By: Frank</title>
		<link>http://frankkoehl.com/2008/05/php-does-not-suck-and-heres-why/#comment-19</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Thu, 29 May 2008 20:23:33 +0000</pubDate>
		<guid isPermaLink="false">http://frankkoehl.com/?p=20#comment-19</guid>
		<description>Good points, Eevee.  The point in mentioning Rails was simply for example purposes, i.e. clearly defining how some approaches--whether by choice of framework or language--can sometimes make too many assumptions for the developer.

And you're absolutely right about mixing HTML, CSS, and Javascript, however I think you read my post too closely.  I was simply referring to how these technologies work in tandem, and not actually meshing them together in one script.  That being said, I've found that some more advanced AJAX effects make holding to this rule darn impossible at times.</description>
		<content:encoded><![CDATA[<p>Good points, Eevee.  The point in mentioning Rails was simply for example purposes, i.e. clearly defining how some approaches&#8211;whether by choice of framework or language&#8211;can sometimes make too many assumptions for the developer.</p>
<p>And you&#8217;re absolutely right about mixing HTML, CSS, and Javascript, however I think you read my post too closely.  I was simply referring to how these technologies work in tandem, and not actually meshing them together in one script.  That being said, I&#8217;ve found that some more advanced AJAX effects make holding to this rule darn impossible at times.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eevee</title>
		<link>http://frankkoehl.com/2008/05/php-does-not-suck-and-heres-why/#comment-18</link>
		<dc:creator>Eevee</dc:creator>
		<pubDate>Thu, 29 May 2008 18:08:30 +0000</pubDate>
		<guid isPermaLink="false">http://frankkoehl.com/?p=20#comment-18</guid>
		<description>I would argue that embedding "real" code inside markup is almost always a terrible idea.  I cannot immediately think up a case where code with a separate template supporting a simple templating language would NOT be easier to understand and maintain than having both strewn haphazardly within the same file.

Keep in mind that the push these days is also to keep your HTML, CSS, and Javascript separate, for the long-observed obvious reason that mixing bits and pieces together gives you a mess of a file with some four different languages that all serve completely different functions.  You can put CSS directly inline in your HTML, too, but for the most part we don't, and there's a very good reason for it.

Regardless, you don't have to use this approach no matter what language you're using.  In Perl you can either print HTML the old-fashioned way or embed PHP-style with Mason.  Python's Mako lets you embed however much Python you need within your templates, but still supports very simple looping, conditionals, and expression substitution.  Ruby's rhtml is just Ruby embedded in HTML; if you really wanted to, I see no reason you couldn't put your entire app in rhtml.  Not that you ever should.  But you CAN.

Also, do not compare PHP to Rails.  PHP is a language.  Rails is an entire framework, built with a certain paradigm in mind and meant to do certain kinds of work for you.  Compare CakePHP to Rails, or compare PHP to Ruby.  But don't compare a raw language to a framework and then complain that the framework takes away too much control.  You can do CGI-style web programming in plain Ruby just fine.  If you really have such problems with frameworks, though, I suspect you either haven't used them very much or have been trying to fight the one you used instead of working with it.  Everything in the RoR MVC family is designed to be as flexible as possible and get out of your way if you really want it to.

Re Aston: I am not aware of a Linux distribution that ships without Perl, and most come with Python.  I would also not call a language that drastically changes in functionality based upon the settings in some global file one that works well with *whatever* web hosting environment you happen to be in.</description>
		<content:encoded><![CDATA[<p>I would argue that embedding &#8220;real&#8221; code inside markup is almost always a terrible idea.  I cannot immediately think up a case where code with a separate template supporting a simple templating language would NOT be easier to understand and maintain than having both strewn haphazardly within the same file.</p>
<p>Keep in mind that the push these days is also to keep your HTML, CSS, and Javascript separate, for the long-observed obvious reason that mixing bits and pieces together gives you a mess of a file with some four different languages that all serve completely different functions.  You can put CSS directly inline in your HTML, too, but for the most part we don&#8217;t, and there&#8217;s a very good reason for it.</p>
<p>Regardless, you don&#8217;t have to use this approach no matter what language you&#8217;re using.  In Perl you can either print HTML the old-fashioned way or embed PHP-style with Mason.  Python&#8217;s Mako lets you embed however much Python you need within your templates, but still supports very simple looping, conditionals, and expression substitution.  Ruby&#8217;s rhtml is just Ruby embedded in HTML; if you really wanted to, I see no reason you couldn&#8217;t put your entire app in rhtml.  Not that you ever should.  But you CAN.</p>
<p>Also, do not compare PHP to Rails.  PHP is a language.  Rails is an entire framework, built with a certain paradigm in mind and meant to do certain kinds of work for you.  Compare CakePHP to Rails, or compare PHP to Ruby.  But don&#8217;t compare a raw language to a framework and then complain that the framework takes away too much control.  You can do CGI-style web programming in plain Ruby just fine.  If you really have such problems with frameworks, though, I suspect you either haven&#8217;t used them very much or have been trying to fight the one you used instead of working with it.  Everything in the RoR MVC family is designed to be as flexible as possible and get out of your way if you really want it to.</p>
<p>Re Aston: I am not aware of a Linux distribution that ships without Perl, and most come with Python.  I would also not call a language that drastically changes in functionality based upon the settings in some global file one that works well with *whatever* web hosting environment you happen to be in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aston</title>
		<link>http://frankkoehl.com/2008/05/php-does-not-suck-and-heres-why/#comment-17</link>
		<dc:creator>Aston</dc:creator>
		<pubDate>Wed, 28 May 2008 10:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://frankkoehl.com/?p=20#comment-17</guid>
		<description>Agree 100%.

I also scratched my head a bit after reading that day's post from Jeff's blog (which I also read regularly).  Curious to know why he randomly decided to flame a language he admitted to knowing little about.  But, you know, whatever.

I don't disagree with much of what he said either, but I think you've made an excellent case for why PHP is so valuable - flexibility.

If I'm a web developer and I have 100 clients hosted in all different shared hosting environments, I can't depend on every server to have Rails, Perl, or C#.  Some will, some won't.  

But just about every shared hosting service nowadays comes with at least PHP 4, so when a client needs an admin tool, CMS, shopping cart, or any other form of server-side scripting, I know I can always fall back the web largest common denominator to work well with whatever web hosting environment I happen to be in.</description>
		<content:encoded><![CDATA[<p>Agree 100%.</p>
<p>I also scratched my head a bit after reading that day&#8217;s post from Jeff&#8217;s blog (which I also read regularly).  Curious to know why he randomly decided to flame a language he admitted to knowing little about.  But, you know, whatever.</p>
<p>I don&#8217;t disagree with much of what he said either, but I think you&#8217;ve made an excellent case for why PHP is so valuable - flexibility.</p>
<p>If I&#8217;m a web developer and I have 100 clients hosted in all different shared hosting environments, I can&#8217;t depend on every server to have Rails, Perl, or C#.  Some will, some won&#8217;t.  </p>
<p>But just about every shared hosting service nowadays comes with at least PHP 4, so when a client needs an admin tool, CMS, shopping cart, or any other form of server-side scripting, I know I can always fall back the web largest common denominator to work well with whatever web hosting environment I happen to be in.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
