<?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: Constants Are a Scam</title>
	<atom:link href="http://www.bigvisible.com/asroka/constants-are-a-scam/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bigvisible.com/asroka/constants-are-a-scam/</link>
	<description></description>
	<lastBuildDate>Fri, 03 Sep 2010 00:28:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: asroka</title>
		<link>http://www.bigvisible.com/asroka/constants-are-a-scam/comment-page-1/#comment-20838</link>
		<dc:creator>asroka</dc:creator>
		<pubDate>Sun, 29 Nov 2009 19:21:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.bigvisible.com/?p=533#comment-20838</guid>
		<description>Thanks, Marcos. 

It is probably better to say PI = 3.14159265 and then use PI in my calculation. That is called an &quot;explaining variable.&quot; It makes it much clearer what the number means. However, there are a limited number of ways to use pi: volume of a sphere, angular distance, etc. Those things should probably be in one place in my code and not several. 

Local explaining variables are an exceptionally good idea. Public constants are likely to violate encapsulation.</description>
		<content:encoded><![CDATA[<p>Thanks, Marcos. </p>
<p>It is probably better to say PI = 3.14159265 and then use PI in my calculation. That is called an &#8220;explaining variable.&#8221; It makes it much clearer what the number means. However, there are a limited number of ways to use pi: volume of a sphere, angular distance, etc. Those things should probably be in one place in my code and not several. </p>
<p>Local explaining variables are an exceptionally good idea. Public constants are likely to violate encapsulation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcos Silva Pereira</title>
		<link>http://www.bigvisible.com/asroka/constants-are-a-scam/comment-page-1/#comment-20821</link>
		<dc:creator>Marcos Silva Pereira</dc:creator>
		<pubDate>Sun, 29 Nov 2009 05:32:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.bigvisible.com/?p=533#comment-20821</guid>
		<description>Sometimes is not about have just one place to change, but it&#039;s about readability. Is easy to read/understand ITEMS_AMOUNT than just 10.</description>
		<content:encoded><![CDATA[<p>Sometimes is not about have just one place to change, but it&#8217;s about readability. Is easy to read/understand ITEMS_AMOUNT than just 10.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
