<?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: Conditional Class Declaration - bad practice?</title>
	<atom:link href="http://www.sitepoint.com/blogs/2004/03/31/conditional-class-declaration-bad-practice/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2004/03/31/conditional-class-declaration-bad-practice/</link>
	<description></description>
	<pubDate>Fri, 25 Jul 2008 00:39:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Winged Spider</title>
		<link>http://www.sitepoint.com/blogs/2004/03/31/conditional-class-declaration-bad-practice/#comment-150</link>
		<dc:creator>Winged Spider</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-150</guid>
		<description>&lt;p&gt;[ot]I can't view the forum thread you linked to because I don't have enough permissions?!?  Weird...&lt;/p&gt;

&lt;p&gt;http://www.sitepoint.com/forums/showthread.php?t=151665[/ot]&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>[ot]I can&#8217;t view the forum thread you linked to because I don&#8217;t have enough permissions?!?  Weird&#8230;</p>
<p><a href="http://www.sitepoint.com/forums/showthread.php?t=151665/ot" rel="nofollow">http://www.sitepoint.com/forums/showthread.php?t=151665/ot</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: George Schlossnagle</title>
		<link>http://www.sitepoint.com/blogs/2004/03/31/conditional-class-declaration-bad-practice/#comment-151</link>
		<dc:creator>George Schlossnagle</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-151</guid>
		<description>&lt;p&gt;I think the real bad practice it protects against is this:&lt;/p&gt;

&lt;p&gt;if($day == 'Tuesday') {&lt;br /&gt;
  class foo {&lt;br /&gt;
    // class definition ...&lt;br /&gt;
  } &lt;br /&gt;
} else {&lt;br /&gt;
  class foo {&lt;br /&gt;
    // something else&lt;br /&gt;
  }&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;That sort of confitional declaration is much more clearly bad practice, I think.&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>I think the real bad practice it protects against is this:</p>
<p>if($day == &#8216;Tuesday&#8217;) {<br />
  class foo {<br />
    // class definition &#8230;<br />
  } <br />
} else {<br />
  class foo {<br />
    // something else<br />
  }<br />
}</p>
<p>That sort of confitional declaration is much more clearly bad practice, I think.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: HarryF</title>
		<link>http://www.sitepoint.com/blogs/2004/03/31/conditional-class-declaration-bad-practice/#comment-152</link>
		<dc:creator>HarryF</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-152</guid>
		<description>&lt;p&gt;Not to worry - it was a link to Jason's member profile in the forums, as opposed to a specific post.&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>Not to worry - it was a link to Jason&#8217;s member profile in the forums, as opposed to a specific post.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Knowles</title>
		<link>http://www.sitepoint.com/blogs/2004/03/31/conditional-class-declaration-bad-practice/#comment-153</link>
		<dc:creator>Alan Knowles</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-153</guid>
		<description>&lt;p&gt;It has been fixed now.. - There where a number of essential examples that used this.. (eg. FC/BC compatiblity on overload stuff)&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>It has been fixed now.. - There where a number of essential examples that used this.. (eg. FC/BC compatiblity on overload stuff)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: HarryF</title>
		<link>http://www.sitepoint.com/blogs/2004/03/31/conditional-class-declaration-bad-practice/#comment-154</link>
		<dc:creator>HarryF</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-154</guid>
		<description>&lt;p&gt;[QUOTE=Anonymous]I think the real bad practice it protects against is this:&lt;/p&gt;

&lt;p&gt;if($day == 'Tuesday') {&lt;br /&gt;
  class foo {&lt;br /&gt;
    // class definition ...&lt;br /&gt;
  } &lt;br /&gt;
} else {&lt;br /&gt;
  class foo {&lt;br /&gt;
    // something else&lt;br /&gt;
  }&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;That sort of confitional declaration is much more clearly bad practice, I think.[/QUOTE]&lt;/p&gt;

&lt;p&gt;Good point. I guess this is what was being referred to as bad practice.&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>[QUOTE=Anonymous]I think the real bad practice it protects against is this:</p>
<p>if($day == &#8216;Tuesday&#8217;) {<br />
  class foo {<br />
    // class definition &#8230;<br />
  } <br />
} else {<br />
  class foo {<br />
    // something else<br />
  }<br />
}</p>
<p>That sort of confitional declaration is much more clearly bad practice, I think.[/QUOTE]</p>
<p>Good point. I guess this is what was being referred to as bad practice.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: HarryF</title>
		<link>http://www.sitepoint.com/blogs/2004/03/31/conditional-class-declaration-bad-practice/#comment-155</link>
		<dc:creator>HarryF</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-155</guid>
		<description>&lt;p&gt;[QUOTE=Anonymous]It has been fixed now.. - There where a number of essential examples that used this.. (eg. FC/BC compatiblity on overload stuff)[/QUOTE]&lt;/p&gt;

&lt;p&gt;Thanks for the update - thats good to hear.&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>[QUOTE=Anonymous]It has been fixed now.. - There where a number of essential examples that used this.. (eg. FC/BC compatiblity on overload stuff)[/QUOTE]</p>
<p>Thanks for the update - thats good to hear.</p>]]></content:encoded>
	</item>
</channel>
</rss>
