<?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: Tip of the Day &#8211; When to use include</title>
	<atom:link href="http://blog.natebeck.net/2009/01/tip-of-the-day-when-to-use-include/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.natebeck.net/2009/01/tip-of-the-day-when-to-use-include/</link>
	<description>AIR, Flex / Flash, FMS, PushButton, Game... Developer</description>
	<lastBuildDate>Mon, 11 Jul 2011 19:09:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Nate</title>
		<link>http://blog.natebeck.net/2009/01/tip-of-the-day-when-to-use-include/comment-page-1/#comment-284</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Mon, 09 Mar 2009 19:02:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.natebeck.net/?p=277#comment-284</guid>
		<description>@tom

You know, in the situation where I&#039;m using a bunch of constants.  I just package them into a class of static consts, usually referred to as an ENUM class. 

For example:
&lt;code&gt;
package net.natebeck.consts
{
&#160;&#160;&#160;&#160;public final class ServerConsts
&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;public static const SERVER_URL:String = &quot;http://blog.natebeck.net&quot;;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;public static const APPLICATION_NAME:String = &quot;myApp&quot;;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;public static const FAVORITE_COLOR:String = &quot;blue&quot;;
&#160;&#160;&#160;&#160;}
}
&lt;/code&gt;

Then you just use... ServerConsts.SERVER_URL</description>
		<content:encoded><![CDATA[<p>@tom</p>
<p>You know, in the situation where I&#8217;m using a bunch of constants.  I just package them into a class of static consts, usually referred to as an ENUM class. </p>
<p>For example:<br />
<code><br />
package net.natebeck.consts<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;public final class ServerConsts<br />
&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public static const SERVER_URL:String = "http://blog.natebeck.net";<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public static const APPLICATION_NAME:String = "myApp";<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public static const FAVORITE_COLOR:String = "blue";<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
}<br />
</code></p>
<p>Then you just use&#8230; ServerConsts.SERVER_URL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom</title>
		<link>http://blog.natebeck.net/2009/01/tip-of-the-day-when-to-use-include/comment-page-1/#comment-126</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Thu, 19 Feb 2009 18:06:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.natebeck.net/?p=277#comment-126</guid>
		<description>Hmm. I had pondered this myself.
I&#039;m not at all sure that this is a good reason, but here&#039;s the one and only scenario where I use them:

I have bunch of constants (server URLs, etc) that I need access to in several different classes, but the classes are not otherwise related enough to justify them all inheriting from one base class. So I put them in one file, and include that at the top off all my other files.

Would be interested in hearing a better solution..</description>
		<content:encoded><![CDATA[<p>Hmm. I had pondered this myself.<br />
I&#8217;m not at all sure that this is a good reason, but here&#8217;s the one and only scenario where I use them:</p>
<p>I have bunch of constants (server URLs, etc) that I need access to in several different classes, but the classes are not otherwise related enough to justify them all inheriting from one base class. So I put them in one file, and include that at the top off all my other files.</p>
<p>Would be interested in hearing a better solution..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

