<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kickass Labs &#187; fastercsv</title>
	<atom:link href="http://www.kickasslabs.com/tag/fastercsv/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kickasslabs.com</link>
	<description>We &#9829; code.</description>
	<lastBuildDate>Wed, 28 Dec 2011 16:57:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>FasterCSV and noob-ish silliness</title>
		<link>http://www.kickasslabs.com/2009/03/23/fastercsv-and-noob-ish-silliness/</link>
		<comments>http://www.kickasslabs.com/2009/03/23/fastercsv-and-noob-ish-silliness/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 03:44:52 +0000</pubDate>
		<dc:creator>abel</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Quick Hits]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[fastercsv]]></category>
		<category><![CDATA[noob]]></category>

		<guid isPermaLink="false">http://www.kickasslabs.com/?p=238</guid>
		<description><![CDATA[Here are two things I discovered this weekend: Thing 1: FasterCSV is really cool!  It&#8217;s easy to use and does exactly what it should.  Here&#8217;s Scott Becker&#8217;s exporting tutorial.  For importing, i&#8217;ve hacked together bits from Peter Larkmund&#8217;s travels and &#8230; <a href="http://www.kickasslabs.com/2009/03/23/fastercsv-and-noob-ish-silliness/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here are two things I discovered this weekend:</p>
<p><strong>Thing 1:</strong> <a href="http://fastercsv.rubyforge.org/" target="_blank">FasterCSV</a> is really cool!  It&#8217;s easy to use and does exactly what it should.  Here&#8217;s Scott Becker&#8217;s <a href="http://synthesis.sbecker.net/articles/2007/06/07/how-to-generate-csv-files-in-rails" target="_blank">exporting tutorial</a>.  For importing, i&#8217;ve hacked together bits from Peter Larkmund&#8217;s <a href="http://marklunds.com/articles/one/310" target="_blank">travels</a> and the FasterCSV <a href="http://fastercsv.rubyforge.org/classes/FasterCSV.html" target="_blank">documentation</a>.  Thanks to these tutorials, <a href="http://www.am-budget.com" target="_blank">AMB</a> will give users the ability to upload and export CSVs.</p>
<p><strong>Thing 2:</strong> Default values for the win!  If you have a table that has a column for an amount, feel free to set the default value to 0.00.  Otherwise you won&#8217;t be able to do the following:</p>
<p>a = Account.new<br />
a.amount += 20</p>
<p>&#8230;because a.amount will be nil.  You&#8217;ll throw an error and if you just updated a bunch of code, you might waste an hour trying to figure out why you&#8217;re throwing an exception.  However, if you declare a default value, you&#8217;ll be able to avoid any issues.</p>
<p>If you want me to go into further detail on either thing, just leave a comment.</p>
<p>Thanks for reading and happy hacking.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kickasslabs.com%2F2009%2F03%2F23%2Ffastercsv-and-noob-ish-silliness%2F&amp;title=FasterCSV%20and%20noob-ish%20silliness" id="wpa2a_2"><img src="http://www.kickasslabs.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kickasslabs.com/2009/03/23/fastercsv-and-noob-ish-silliness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

