<?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: Rails&#8217; symbols: don&#8217;t create them dynamically!</title>
	<atom:link href="http://jonathansng.com/ruby-on-rails/rails-symbols-dont-create-them-dynamically/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathansng.com/ruby-on-rails/rails-symbols-dont-create-them-dynamically/</link>
	<description>class AllYourCode &#60; Us</description>
	<lastBuildDate>Wed, 03 Mar 2010 09:18:13 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: brianlopez</title>
		<link>http://jonathansng.com/ruby-on-rails/rails-symbols-dont-create-them-dynamically/comment-page-1/#comment-750</link>
		<dc:creator>brianlopez</dc:creator>
		<pubDate>Thu, 23 Jul 2009 05:42:19 +0000</pubDate>
		<guid isPermaLink="false">http://jonathansng.com/?p=230#comment-750</guid>
		<description>It should be noted that using/creating &quot;dynamic&quot; symbols is sometimes the *desired* behavior - say for turning a result set into a Ruby Hash.&lt;br&gt;In this case, the number of symbols is tied to the number of columns/key names in the result set. And if the result set is large enough, it&#039;s actually *more* efficient to use symbols as they&#039;re only allocated once. Whereas if string keys were to be used, an incredible amount of memory (and later Garbage Collection) would have to occur on a result set of the same (albeit, large) size.</description>
		<content:encoded><![CDATA[<p>It should be noted that using/creating &#8220;dynamic&#8221; symbols is sometimes the *desired* behavior &#8211; say for turning a result set into a Ruby Hash.<br />In this case, the number of symbols is tied to the number of columns/key names in the result set. And if the result set is large enough, it&#39;s actually *more* efficient to use symbols as they&#39;re only allocated once. Whereas if string keys were to be used, an incredible amount of memory (and later Garbage Collection) would have to occur on a result set of the same (albeit, large) size.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex grande</title>
		<link>http://jonathansng.com/ruby-on-rails/rails-symbols-dont-create-them-dynamically/comment-page-1/#comment-739</link>
		<dc:creator>alex grande</dc:creator>
		<pubDate>Mon, 18 May 2009 05:33:46 +0000</pubDate>
		<guid isPermaLink="false">http://jonathansng.com/?p=230#comment-739</guid>
		<description>for a noob like me - &lt;pre class=&quot;rails&quot; style=&quot;font-family: monospace;&quot;&gt;#{hardware_item.name.downcase}&lt;/pre&gt; is creating the symbol?&lt;br&gt;&lt;br&gt;And what&#039;s the difference between &lt;pre class=&quot;rails&quot; style=&quot;font-family: monospace;&quot;&gt;formatted[&quot;bolts&quot;]&lt;/pre&gt; and &lt;pre class=&quot;rails&quot; style=&quot;font-family: monospace;&quot;&gt;formatted[:bolts]&lt;/pre&gt;?</description>
		<content:encoded><![CDATA[<p>for a noob like me &#8211; &lt;pre class=&#8221;rails&#8221; style=&#8221;font-family: monospace;&#8221;&gt;#{hardware_item.name.downcase}&lt;/pre&gt; is creating the symbol?</p>
<p>And what&#39;s the difference between &lt;pre class=&#8221;rails&#8221; style=&#8221;font-family: monospace;&#8221;&gt;formatted["bolts"]&lt;/pre&gt; and &lt;pre class=&#8221;rails&#8221; style=&#8221;font-family: monospace;&#8221;&gt;formatted[:bolts]&lt;/pre&gt;?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
