<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">
<channel>
	<title>Comments for jansch.nl</title>
	
	<link>http://www.jansch.nl</link>
	<description>Ivo's blog about PHP, the internet and life in general</description>
	<pubDate>Fri, 12 Mar 2010 04:56:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CommentsForJanschnl" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="commentsforjanschnl" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Comment on Test First by James M.</title>
		<link>http://www.jansch.nl/2005/03/16/test-first/comment-page-4/#comment-1031351</link>
		<dc:creator>James M.</dc:creator>
		<pubDate>Fri, 12 Mar 2010 03:55:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.jansch.nl/?p=31#comment-1031351</guid>
		<description>I absolutely enjoy this perfect posting that you have given for all of us. I guarantee this would be useful for most people.</description>
		<content:encoded><![CDATA[<p><!-- google_ad_section_start -->I absolutely enjoy this perfect posting that you have given for all of us. I guarantee this would be useful for most people.<!-- google_ad_section_end --></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Small country, big in PHP by eduvision</title>
		<link>http://www.jansch.nl/2008/04/27/small-country-big-in-php/comment-page-3/#comment-1030861</link>
		<dc:creator>eduvision</dc:creator>
		<pubDate>Thu, 11 Mar 2010 03:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.jansch.nl/2008/04/27/small-country-big-in-php/#comment-1030861</guid>
		<description>[...] kabel of ADSL heeft, maar dat is natuurlijk niet het geval. Als je je website eens wilt testen opIvo's Blog - jansch.nl Blog Archive Small country, big in PHPEduvision PHP Conferentie 2008. Afternoon PHP conference on various topics. When: October ... [...]</description>
		<content:encoded><![CDATA[<p><!-- google_ad_section_start -->[...] kabel of ADSL heeft, maar dat is natuurlijk niet het geval. Als je je website eens wilt testen opIvo&#8217;s Blog - jansch.nl Blog Archive Small country, big in PHPEduvision PHP Conferentie 2008. Afternoon PHP conference on various topics. When: October &#8230; [...]<!-- google_ad_section_end --></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How does your door open? by rocker2344</title>
		<link>http://www.jansch.nl/2008/07/28/how-does-your-door-open/comment-page-5/#comment-1016601</link>
		<dc:creator>rocker2344</dc:creator>
		<pubDate>Tue, 16 Feb 2010 02:13:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.jansch.nl/2008/07/28/how-does-your-door-open/#comment-1016601</guid>
		<description>i live in the us. but in the state of florida. we are attacked by hurricanes. in earlier years the doors opened inwards. but now they open outwards with a chain at the top jic the hurricane rips the door off it's hinges. so the way the doors open are suited to the environment you live in. also my door is FUCKING HEAVY. around 60+lbs. and that is on the light end of regulations.</description>
		<content:encoded><![CDATA[<p><!-- google_ad_section_start -->i live in the us. but in the state of florida. we are attacked by hurricanes. in earlier years the doors opened inwards. but now they open outwards with a chain at the top jic the hurricane rips the door off it&#8217;s hinges. so the way the doors open are suited to the environment you live in. also my door is FUCKING HEAVY. around 60+lbs. and that is on the light end of regulations.<!-- google_ad_section_end --></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP as a template language by Ivo Jansch’s Blog: PHP as a template language | Development Blog With Code Updates : Developercast.com</title>
		<link>http://www.jansch.nl/2010/02/11/php-as-a-template-language/comment-page-2/#comment-1016481</link>
		<dc:creator>Ivo Jansch’s Blog: PHP as a template language | Development Blog With Code Updates : Developercast.com</dc:creator>
		<pubDate>Mon, 15 Feb 2010 19:08:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.jansch.nl/?p=2441#comment-1016481</guid>
		<description>[...] to his blog talking about one of the great debates in the world of PHP - is the language by itself a good templating language (versus using something like Smarty)?   I think I’ve said it before. The tool you use should [...]</description>
		<content:encoded><![CDATA[<p><!-- google_ad_section_start -->[...] to his blog talking about one of the great debates in the world of PHP - is the language by itself a good templating language (versus using something like Smarty)?   I think I&#8217;ve said it before. The tool you use should [...]<!-- google_ad_section_end --></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP as a template language by Ivo Jansch’s Blog: PHP as a template language | Webs Developer</title>
		<link>http://www.jansch.nl/2010/02/11/php-as-a-template-language/comment-page-1/#comment-1016421</link>
		<dc:creator>Ivo Jansch’s Blog: PHP as a template language | Webs Developer</dc:creator>
		<pubDate>Mon, 15 Feb 2010 15:01:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.jansch.nl/?p=2441#comment-1016421</guid>
		<description>[...] to his blog talking about one of the great debates in the world of PHP - is the language by itself a good templating language (versus using something like Smarty)?   I think I’ve said it before. The tool you use should [...]</description>
		<content:encoded><![CDATA[<p><!-- google_ad_section_start -->[...] to his blog talking about one of the great debates in the world of PHP - is the language by itself a good templating language (versus using something like Smarty)?   I think I&#8217;ve said it before. The tool you use should [...]<!-- google_ad_section_end --></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP as a template language by Hirvine</title>
		<link>http://www.jansch.nl/2010/02/11/php-as-a-template-language/comment-page-1/#comment-1016401</link>
		<dc:creator>Hirvine</dc:creator>
		<pubDate>Mon, 15 Feb 2010 14:57:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.jansch.nl/?p=2441#comment-1016401</guid>
		<description>ah form removed my php tags completely, but you get the idea I think :)</description>
		<content:encoded><![CDATA[<p><!-- google_ad_section_start -->ah form removed my php tags completely, but you get the idea I think <img src='http://www.jansch.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <!-- google_ad_section_end --></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP as a template language by Hirvine</title>
		<link>http://www.jansch.nl/2010/02/11/php-as-a-template-language/comment-page-1/#comment-1016391</link>
		<dc:creator>Hirvine</dc:creator>
		<pubDate>Mon, 15 Feb 2010 14:55:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.jansch.nl/?p=2441#comment-1016391</guid>
		<description>True, about messed up PHP, but your example actually shows a poor controller.
A controller shouldn't use the same view for an error and valid xml.
On the other hand, if I don't retain the `error` message idea, you may tell blank error message is no error. Which would preserve a single view. Short-tags is indeed irritating here. Mine would look like.

Valid 


&lt;result processed="processed? 'yes':'no'; ?&gt;"
       &lt;orderId="orderid; ?&gt;" /&gt;


Error


&lt;result processed="processed? 'yes':'no'; ?&gt;"
     &lt;orderId="orderid; ?&gt;" /&gt;
     &lt;error message="error; ?&gt;" /&gt;


It also fixes your missing '&lt;' in front of the order id element.
You have also missed the self closing slash on order id element.

Clearly Smarty didn't helped you to find those format errors. So no "Easy to Use and Maintain" story for Smarty.


Hey don't get me wrong. It is what  @Manes tells. Using smarty is depended by situation and business. Among friends PHP would do the trick, among a big business which uses different frameworks/cms you may think using template systems.</description>
		<content:encoded><![CDATA[<p><!-- google_ad_section_start -->True, about messed up PHP, but your example actually shows a poor controller.<br />
A controller shouldn&#8217;t use the same view for an error and valid xml.<br />
On the other hand, if I don&#8217;t retain the `error` message idea, you may tell blank error message is no error. Which would preserve a single view. Short-tags is indeed irritating here. Mine would look like.</p>
<p>Valid </p>
<p>&lt;result processed=&#8221;processed? &#8216;yes&#8217;:'no&#8217;; ?&gt;&#8221;<br />
       &lt;orderId=&#8221;orderid; ?&gt;&#8221; /&gt;</p>
<p>Error</p>
<p>&lt;result processed=&#8221;processed? &#8216;yes&#8217;:'no&#8217;; ?&gt;&#8221;<br />
     &lt;orderId=&#8221;orderid; ?&gt;&#8221; /&gt;<br />
     &lt;error message=&#8221;error; ?&gt;&#8221; /&gt;</p>
<p>It also fixes your missing &#8216;&lt;&#8217; in front of the order id element.<br />
You have also missed the self closing slash on order id element.</p>
<p>Clearly Smarty didn&#8217;t helped you to find those format errors. So no &#8220;Easy to Use and Maintain&#8221; story for Smarty.</p>
<p>Hey don&#8217;t get me wrong. It is what  @Manes tells. Using smarty is depended by situation and business. Among friends PHP would do the trick, among a big business which uses different frameworks/cms you may think using template systems.<!-- google_ad_section_end --></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP as a template language by PHP as a template language « Aljo Guts</title>
		<link>http://www.jansch.nl/2010/02/11/php-as-a-template-language/comment-page-1/#comment-1016371</link>
		<dc:creator>PHP as a template language « Aljo Guts</dc:creator>
		<pubDate>Mon, 15 Feb 2010 14:40:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.jansch.nl/?p=2441#comment-1016371</guid>
		<description>[...] Latest news)  One of the great debates in the world of PHP – is the language by itself a good templating language (versus using something like Smarty)? I think I’ve said it before. The tool you use should [...]</description>
		<content:encoded><![CDATA[<p><!-- google_ad_section_start -->[...] Latest news)  One of the great debates in the world of PHP &#8211; is the language by itself a good templating language (versus using something like Smarty)? I think I&#8217;ve said it before. The tool you use should [...]<!-- google_ad_section_end --></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP as a template language by 網站製作學習誌 » [Web] 連結分享</title>
		<link>http://www.jansch.nl/2010/02/11/php-as-a-template-language/comment-page-1/#comment-1015411</link>
		<dc:creator>網站製作學習誌 » [Web] 連結分享</dc:creator>
		<pubDate>Sat, 13 Feb 2010 14:16:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.jansch.nl/?p=2441#comment-1015411</guid>
		<description>[...] PHP as a template language [...]</description>
		<content:encoded><![CDATA[<p><!-- google_ad_section_start -->[...] PHP as a template language [...]<!-- google_ad_section_end --></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP as a template language by Manes</title>
		<link>http://www.jansch.nl/2010/02/11/php-as-a-template-language/comment-page-1/#comment-1015391</link>
		<dc:creator>Manes</dc:creator>
		<pubDate>Sat, 13 Feb 2010 12:24:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.jansch.nl/?p=2441#comment-1015391</guid>
		<description>I agree with the point that the adoption of a technology depends on the business requirements: if you think Smarty is the right tool for the job when why not use it?
Nevertheless, I don't see why a developer shouldn't look at the disadvantages of using such tool. I have never come across a website about any piece of software that lists its disadvantages and I am not surprised. I mean, why would you want to list the disadvantages of the product you've been working on? You don't need a degree in marketing to answer this question.
Perhaps some really frustrated developer took the trouble to create nosmarty.net, maybe when he chose Smarty as the templating engine to use in production he had only looked at the advantages of it, whereas back then he needed to look at the bigger picture and maybe today he would have been a lot happier had he not chosen Smarty.
I have used Smarty in the past and I personally think it's not bad, it did the job back then, but I wouldn't use it again today, I'm looking at alternatives such as PHPTAL: the logic is tightly integrated with the markup thus forcing you to write clean XHTML. Isn't that better? Plus, I saw Smarty code producing JavaScript code, XML feeds, documents later converted into PDFs. I know I am repeating myself, but when we all say we should use the right tool for the job, then why use Smarty to produce JavaScript code, XML feeds, documents? Any JavaScript library (Prototype, jQuery, etc.), the DOM extension and the PDF extension all seem to be better tools for the aforementioned examples.
This is my humble opinion, feel free to disagree.</description>
		<content:encoded><![CDATA[<p><!-- google_ad_section_start -->I agree with the point that the adoption of a technology depends on the business requirements: if you think Smarty is the right tool for the job when why not use it?<br />
Nevertheless, I don&#8217;t see why a developer shouldn&#8217;t look at the disadvantages of using such tool. I have never come across a website about any piece of software that lists its disadvantages and I am not surprised. I mean, why would you want to list the disadvantages of the product you&#8217;ve been working on? You don&#8217;t need a degree in marketing to answer this question.<br />
Perhaps some really frustrated developer took the trouble to create nosmarty.net, maybe when he chose Smarty as the templating engine to use in production he had only looked at the advantages of it, whereas back then he needed to look at the bigger picture and maybe today he would have been a lot happier had he not chosen Smarty.<br />
I have used Smarty in the past and I personally think it&#8217;s not bad, it did the job back then, but I wouldn&#8217;t use it again today, I&#8217;m looking at alternatives such as PHPTAL: the logic is tightly integrated with the markup thus forcing you to write clean XHTML. Isn&#8217;t that better? Plus, I saw Smarty code producing JavaScript code, XML feeds, documents later converted into PDFs. I know I am repeating myself, but when we all say we should use the right tool for the job, then why use Smarty to produce JavaScript code, XML feeds, documents? Any JavaScript library (Prototype, jQuery, etc.), the DOM extension and the PDF extension all seem to be better tools for the aforementioned examples.<br />
This is my humble opinion, feel free to disagree.<!-- google_ad_section_end --></p>
]]></content:encoded>
	</item>
</channel>
</rss>
