<?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: ErlyWeb Tutorial: Life In the Intersection of FP and Dynamic HTML</title>
	<atom:link href="http://yarivsblog.com/articles/2007/02/23/erlyweb-tutorial-life-in-the-intersection-of-fp-and-dynamic-html/feed/" rel="self" type="application/rss+xml" />
	<link>http://yarivsblog.com/articles/2007/02/23/erlyweb-tutorial-life-in-the-intersection-of-fp-and-dynamic-html/</link>
	<description>Adventures in Open Source Erlang</description>
	<pubDate>Fri, 16 May 2008 04:48:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Aidan</title>
		<link>http://yarivsblog.com/articles/2007/02/23/erlyweb-tutorial-life-in-the-intersection-of-fp-and-dynamic-html/#comment-21900</link>
		<dc:creator>Aidan</dc:creator>
		<pubDate>Tue, 10 Apr 2007 22:40:14 +0000</pubDate>
		<guid isPermaLink="false">https://admin.yarivsblog.com/articles/2007/02/23/erlyweb-tutorial-life-in-the-intersection-of-fp-and-dynamic-html/#comment-21900</guid>
		<description>wow, that's a really elegant solution.

I'm just coming back to look at Erlyweb(db, etc) again after having spent a bit of time figuring out Erlang properly. I'm amazed with how clean, simple and flexible it is.

I'll try to contribute something a bit more useful once I've gotten my head around all the stuff it can do :)</description>
		<content:encoded><![CDATA[<p>wow, that&#8217;s a really elegant solution.</p>
<p>I&#8217;m just coming back to look at Erlyweb(db, etc) again after having spent a bit of time figuring out Erlang properly. I&#8217;m amazed with how clean, simple and flexible it is.</p>
<p>I&#8217;ll try to contribute something a bit more useful once I&#8217;ve gotten my head around all the stuff it can do :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Olsen</title>
		<link>http://yarivsblog.com/articles/2007/02/23/erlyweb-tutorial-life-in-the-intersection-of-fp-and-dynamic-html/#comment-13769</link>
		<dc:creator>Brian Olsen</dc:creator>
		<pubDate>Sat, 03 Mar 2007 20:35:43 +0000</pubDate>
		<guid isPermaLink="false">https://admin.yarivsblog.com/articles/2007/02/23/erlyweb-tutorial-life-in-the-intersection-of-fp-and-dynamic-html/#comment-13769</guid>
		<description>I was debating that in my head, using something like Mod = element(1, Rec) as a way to infer what module should be used. But, my assumption relied on the possibility that it would fit in as a utility within ErlyDB, and the programming model that ErlyDB poses.

Either way, the idea is valuable. :)</description>
		<content:encoded><![CDATA[<p>I was debating that in my head, using something like Mod = element(1, Rec) as a way to infer what module should be used. But, my assumption relied on the possibility that it would fit in as a utility within ErlyDB, and the programming model that ErlyDB poses.</p>
<p>Either way, the idea is valuable. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yariv</title>
		<link>http://yarivsblog.com/articles/2007/02/23/erlyweb-tutorial-life-in-the-intersection-of-fp-and-dynamic-html/#comment-13384</link>
		<dc:creator>Yariv</dc:creator>
		<pubDate>Fri, 02 Mar 2007 02:18:15 +0000</pubDate>
		<guid isPermaLink="false">https://admin.yarivsblog.com/articles/2007/02/23/erlyweb-tutorial-life-in-the-intersection-of-fp-and-dynamic-html/#comment-13384</guid>
		<description>I like the idea... but I think that instead of generating such functions with ErlyDB, it would be easier to provide a function in erlyweb_util such as follows

&lt;code&gt;&lt;br /&gt;
get_view_closure(Rec) -&#62;&lt;br /&gt;
&#160;&#160;Mod = element(1, Rec),&lt;br /&gt;
&#160;&#160;fun(Field) -&#62;&lt;br /&gt;
&#160;&#160;&#160;&#160;erlydb_base:field_to_iolist(Mod:Field(Rec))&lt;br /&gt;
&#160;&#160;end.&lt;br /&gt;
&lt;/code&gt;

It does the trick without any code generation.</description>
		<content:encoded><![CDATA[<p>I like the idea&#8230; but I think that instead of generating such functions with ErlyDB, it would be easier to provide a function in erlyweb_util such as follows</p>
<p><code><br />
get_view_closure(Rec) -&gt;<br />
&nbsp;&nbsp;Mod = element(1, Rec),<br />
&nbsp;&nbsp;fun(Field) -&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;erlydb_base:field_to_iolist(Mod:Field(Rec))<br />
&nbsp;&nbsp;end.<br />
</code></p>
<p>It does the trick without any code generation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Olsen</title>
		<link>http://yarivsblog.com/articles/2007/02/23/erlyweb-tutorial-life-in-the-intersection-of-fp-and-dynamic-html/#comment-13037</link>
		<dc:creator>Brian Olsen</dc:creator>
		<pubDate>Wed, 28 Feb 2007 20:04:48 +0000</pubDate>
		<guid isPermaLink="false">https://admin.yarivsblog.com/articles/2007/02/23/erlyweb-tutorial-life-in-the-intersection-of-fp-and-dynamic-html/#comment-13037</guid>
		<description>Just an idea, generated after posting my last comment: since this is such a good approach, maybe to save a few keystrokes and make this good idea as a standard, maybe a function that returns a function similar to what you wrote would be useful?

make_field_strings(module, Record) -&#62;
    fun(Field) -&#62;
        erlydb_base:field_to_iolist(Module:Field(Record))
    end.

then controller functions return:

{data, language:make_field_strings(Language)}

(forgive the poor naming of the function :))</description>
		<content:encoded><![CDATA[<p>Just an idea, generated after posting my last comment: since this is such a good approach, maybe to save a few keystrokes and make this good idea as a standard, maybe a function that returns a function similar to what you wrote would be useful?</p>
<p>make_field_strings(module, Record) -&gt;<br />
    fun(Field) -&gt;<br />
        erlydb_base:field_to_iolist(Module:Field(Record))<br />
    end.</p>
<p>then controller functions return:</p>
<p>{data, language:make_field_strings(Language)}</p>
<p>(forgive the poor naming of the function :))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Olsen</title>
		<link>http://yarivsblog.com/articles/2007/02/23/erlyweb-tutorial-life-in-the-intersection-of-fp-and-dynamic-html/#comment-13034</link>
		<dc:creator>Brian Olsen</dc:creator>
		<pubDate>Wed, 28 Feb 2007 19:54:47 +0000</pubDate>
		<guid isPermaLink="false">https://admin.yarivsblog.com/articles/2007/02/23/erlyweb-tutorial-life-in-the-intersection-of-fp-and-dynamic-html/#comment-13034</guid>
		<description>What an interesting approach. I originally came up with a hacked together approach to handle the undefined problem, but your approach is much more concise (given in-depth knowledge in erlydb :) )</description>
		<content:encoded><![CDATA[<p>What an interesting approach. I originally came up with a hacked together approach to handle the undefined problem, but your approach is much more concise (given in-depth knowledge in erlydb :) )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AJxn</title>
		<link>http://yarivsblog.com/articles/2007/02/23/erlyweb-tutorial-life-in-the-intersection-of-fp-and-dynamic-html/#comment-12601</link>
		<dc:creator>AJxn</dc:creator>
		<pubDate>Tue, 27 Feb 2007 04:22:05 +0000</pubDate>
		<guid isPermaLink="false">https://admin.yarivsblog.com/articles/2007/02/23/erlyweb-tutorial-life-in-the-intersection-of-fp-and-dynamic-html/#comment-12601</guid>
		<description>(or functions generated by ErlyDB) directly. Do do this, we can go the â€œtraditionalâ€

Misstyped "To" as "Do", and that is the only "fault" i found :)</description>
		<content:encoded><![CDATA[<p>(or functions generated by ErlyDB) directly. Do do this, we can go the â€œtraditionalâ€</p>
<p>Misstyped &#8220;To&#8221; as &#8220;Do&#8221;, and that is the only &#8220;fault&#8221; i found :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ludo</title>
		<link>http://yarivsblog.com/articles/2007/02/23/erlyweb-tutorial-life-in-the-intersection-of-fp-and-dynamic-html/#comment-12111</link>
		<dc:creator>ludo</dc:creator>
		<pubDate>Sat, 24 Feb 2007 05:07:32 +0000</pubDate>
		<guid isPermaLink="false">https://admin.yarivsblog.com/articles/2007/02/23/erlyweb-tutorial-life-in-the-intersection-of-fp-and-dynamic-html/#comment-12111</guid>
		<description>Again a great tutorial!
I really like your style to propose a simple problem and solve it part by part, doing and correcting mistakes along the path to the final solution.
Thanks.</description>
		<content:encoded><![CDATA[<p>Again a great tutorial!<br />
I really like your style to propose a simple problem and solve it part by part, doing and correcting mistakes along the path to the final solution.<br />
Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
