<?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: Spreadsheet imports: imperative vs. functional</title>
	<atom:link href="http://greenokapi.net/blog/2009/12/26/spreadsheet-imports-imperative-vs-functional/feed/" rel="self" type="application/rss+xml" />
	<link>http://greenokapi.net/blog/2009/12/26/spreadsheet-imports-imperative-vs-functional/</link>
	<description>Perl, Haskell, stuff</description>
	<pubDate>Fri, 30 Jul 2010 17:58:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: RandomGuy</title>
		<link>http://greenokapi.net/blog/2009/12/26/spreadsheet-imports-imperative-vs-functional/#comment-1988</link>
		<dc:creator>RandomGuy</dc:creator>
		<pubDate>Thu, 31 Dec 2009 09:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://greenokapi.net/blog/?p=174#comment-1988</guid>
		<description>Would you mind tagging your perl stuff somehow so it doesn't show up on the haskell world blog?</description>
		<content:encoded><![CDATA[<br />
<b>Warning</b>:  preg_replace_callback() [<a href='function.preg-replace-callback'>function.preg-replace-callback</a>]: Unknown modifier '|' in <b>/var/www/blog/wp-content/plugins/text-control/text-control/markdown.php</b> on line <b>766</b><br />

]]></content:encoded>
	</item>
	<item>
		<title>By: Evan Carroll</title>
		<link>http://greenokapi.net/blog/2009/12/26/spreadsheet-imports-imperative-vs-functional/#comment-1986</link>
		<dc:creator>Evan Carroll</dc:creator>
		<pubDate>Wed, 30 Dec 2009 16:12:01 +0000</pubDate>
		<guid isPermaLink="false">http://greenokapi.net/blog/?p=174#comment-1986</guid>
		<description>Yes, with sample data. I'd be able to show you a mock up of how a spreadsheet import would be done: for csv -- it is as simple as Text::CSV which can handle headers even and return a hash ref for each row. For fixed width stuff, try my DataExtract::FixedWidth. As for a statefull parser you don't have to do all this stuff you're doing. All you have to do is isolate a primary key and the parse the row using the same criteria, if that primary key is null you append the previous hashref or perform appropriately. But again, without a code sample, and raw input it becomes more work to throw new approaches.

How would you tackle this task? Is there even an elegant way to do it imperatively?

I'm just not sure how to answer that, if there was no real code, or real input data to present the answer with.</description>
		<content:encoded><![CDATA[<br />
<b>Warning</b>:  preg_replace_callback() [<a href='function.preg-replace-callback'>function.preg-replace-callback</a>]: Unknown modifier '|' in <b>/var/www/blog/wp-content/plugins/text-control/text-control/markdown.php</b> on line <b>766</b><br />

]]></content:encoded>
	</item>
	<item>
		<title>By: osfameron</title>
		<link>http://greenokapi.net/blog/2009/12/26/spreadsheet-imports-imperative-vs-functional/#comment-1985</link>
		<dc:creator>osfameron</dc:creator>
		<pubDate>Wed, 30 Dec 2009 11:35:20 +0000</pubDate>
		<guid isPermaLink="false">http://greenokapi.net/blog/?p=174#comment-1985</guid>
		<description>@EvanCarroll, interesting comment.  That said, this was for a piece of $real_work, and the code/samples above are extracted from that and simplified a bit.  Turning it into a mini-project with sample code and data would be a nice-to-have, but I don't feel it's vital to have those for every blog post you make...

And yes, I was soliciting feedback, in the sense that I'd like to know how other people would approach the problem: I've already presented 2 possible ways to do it (1 of which I'm using myself), so I don't feel like I'm holding much back.  Am I missing your point?</description>
		<content:encoded><![CDATA[<br />
<b>Warning</b>:  preg_replace_callback() [<a href='function.preg-replace-callback'>function.preg-replace-callback</a>]: Unknown modifier '|' in <b>/var/www/blog/wp-content/plugins/text-control/text-control/markdown.php</b> on line <b>766</b><br />

]]></content:encoded>
	</item>
	<item>
		<title>By: Evan Carroll</title>
		<link>http://greenokapi.net/blog/2009/12/26/spreadsheet-imports-imperative-vs-functional/#comment-1983</link>
		<dc:creator>Evan Carroll</dc:creator>
		<pubDate>Tue, 29 Dec 2009 17:58:45 +0000</pubDate>
		<guid isPermaLink="false">http://greenokapi.net/blog/?p=174#comment-1983</guid>
		<description>I'm downvoting this on reddit simply because without a sample raw input and code it seems like a bad attempt to solicit feed back. Put the sample code, and raw examples up on gist.github.com or something...</description>
		<content:encoded><![CDATA[<br />
<b>Warning</b>:  preg_replace_callback() [<a href='function.preg-replace-callback'>function.preg-replace-callback</a>]: Unknown modifier '|' in <b>/var/www/blog/wp-content/plugins/text-control/text-control/markdown.php</b> on line <b>766</b><br />

]]></content:encoded>
	</item>
</channel>
</rss>
