<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'Deliberate mistake in episode 6' | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/forums/73/topics/778</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>Deliberate mistake in episode 6 posted by Kevin Smith @ Thu, 07 Aug 2008 17:47:42 -0000</title>
      <description>&lt;p&gt;Gah. Apologies for the error. I&amp;#8217;ll get the source bundle updated &lt;span class="caps"&gt;ASAP&lt;/span&gt;.&lt;/p&gt;</description>
      <pubDate>Thu, 07 Aug 2008 17:47:42 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:73:778:3992</guid>
      <author>Kevin Smith</author>
      <link>http://forums.pragprog.com/forums/73/topics/778</link>
    </item>
    <item>
      <title>Deliberate mistake in episode 6 posted by Tom Ayerst @ Thu, 07 Aug 2008 12:19:30 -0000</title>
      <description>&lt;p&gt;Hi Kevin,&lt;/p&gt;


	&lt;p&gt;Loving the screen casts, they are incredibly helpfull, far more so than I would have predicted.&lt;/p&gt;


	&lt;p&gt;I especially like the deliberate mistakes that force me to really learn how things work ;-)&lt;/p&gt;


	&lt;p&gt;In mucc.erl you have:&lt;/p&gt;


	&lt;p&gt;proxy_client(Messages) -&amp;gt;
  receive
    {printmsg, MessageBody} -&amp;gt;
      proxy_client([MessageBody|Messages]);
    {get_messages, Caller} -&amp;gt;
      Caller ! {messages, lists:reverse(Messages)},
      proxy_client([]);
    {send_message, Addressee, Message} -&amp;gt;
      message_router:send_chat_message(Addressee, Message);
    stop -&amp;gt;
      io:format(&amp;#8220;Proxy stopping&amp;#8230;~n&amp;#8221;),
      ok
  end.&lt;/p&gt;


	&lt;p&gt;There is no tail-recursion in the send_message&amp;#8230; clause.  It took me &lt;em&gt;much&lt;/em&gt; longer to work out what was happening than it should have.&lt;/p&gt;


	&lt;p&gt;Looking forward to the &lt;span class="caps"&gt;OTP&lt;/span&gt; episodes.&lt;/p&gt;


	&lt;p&gt;Rgds.&lt;/p&gt;


	&lt;p&gt;Tom&lt;/p&gt;</description>
      <pubDate>Thu, 07 Aug 2008 12:19:30 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:73:778:3979</guid>
      <author>Tom Ayerst</author>
      <link>http://forums.pragprog.com/forums/73/topics/778</link>
    </item>
  </channel>
</rss>
