<?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 for Intrepid Blog</title>
	<atom:link href="http://blog.affien.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.affien.com</link>
	<description>A few thoughts</description>
	<lastBuildDate>Sun, 31 May 2009 12:07:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Django annoyances: no reverse select_related by Bas Westerbaan</title>
		<link>http://blog.affien.com/archives/2009/05/30/django-annoyances-no-reverse-select_related/comment-page-1/#comment-178399</link>
		<dc:creator>Bas Westerbaan</dc:creator>
		<pubDate>Sun, 31 May 2009 12:07:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.affien.com/?p=380#comment-178399</guid>
		<description>Yeah, that is what I was thinking about.  However, it&#039;s still a waste to have to fetch all comments, when possibly only displaying 30 of them.  (You changed the direction of the reference in your code).</description>
		<content:encoded><![CDATA[<p>Yeah, that is what I was thinking about.  However, it&#8217;s still a waste to have to fetch all comments, when possibly only displaying 30 of them.  (You changed the direction of the reference in your code).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Django annoyances: no reverse select_related by Andrew</title>
		<link>http://blog.affien.com/archives/2009/05/30/django-annoyances-no-reverse-select_related/comment-page-1/#comment-178398</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Sun, 31 May 2009 09:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.affien.com/?p=380#comment-178398</guid>
		<description>You can work around it using select_related to retrieve comments to the pages, and then combine them in the python code using groupby.

from django.utils.itercompat import groupby

comments = Comment.objects.filter(**kwargs).select_related(&#039;page&#039;)
pages_with_comments = dict(groupby(comments, lambda t: t.page))</description>
		<content:encoded><![CDATA[<p>You can work around it using select_related to retrieve comments to the pages, and then combine them in the python code using groupby.</p>
<p>from django.utils.itercompat import groupby</p>
<p>comments = Comment.objects.filter(**kwargs).select_related(&#8217;page&#8217;)<br />
pages_with_comments = dict(groupby(comments, lambda t: t.page))</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Django annoyances: no reverse select_related by Mike Scott</title>
		<link>http://blog.affien.com/archives/2009/05/30/django-annoyances-no-reverse-select_related/comment-page-1/#comment-178397</link>
		<dc:creator>Mike Scott</dc:creator>
		<pubDate>Sat, 30 May 2009 18:08:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.affien.com/?p=380#comment-178397</guid>
		<description>Its something thats been bugging me for quite some time, and just lately its become quite a nusance. If django gracefully degraded and gave you appropriate manual controls for this exact sort of thing it wouldn&#039;t  be so bad. But I can&#039;t seem to work that bit out quite yet.</description>
		<content:encoded><![CDATA[<p>Its something thats been bugging me for quite some time, and just lately its become quite a nusance. If django gracefully degraded and gave you appropriate manual controls for this exact sort of thing it wouldn&#8217;t  be so bad. But I can&#8217;t seem to work that bit out quite yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Python Url Encoding by Sven</title>
		<link>http://blog.affien.com/archives/2005/06/25/python-url-encoding/comment-page-1/#comment-178391</link>
		<dc:creator>Sven</dc:creator>
		<pubDate>Tue, 19 May 2009 21:02:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/?p=102#comment-178391</guid>
		<description>Thanks for this code snippet. On my device a don&#039;t have urllib, thus your approach saved my day :-)</description>
		<content:encoded><![CDATA[<p>Thanks for this code snippet. On my device a don&#8217;t have urllib, thus your approach saved my day <img src='http://blog.affien.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Python Url Encoding by rgz</title>
		<link>http://blog.affien.com/archives/2005/06/25/python-url-encoding/comment-page-1/#comment-178390</link>
		<dc:creator>rgz</dc:creator>
		<pubDate>Mon, 18 May 2009 06:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/?p=102#comment-178390</guid>
		<description>import urllib
urlencode = lambda s: urllib.urlencode({&#039;x&#039;: s})[2:]
assert urlencode(&quot;foo bar baz&quot;) == &quot;foo+bar+baz&quot;</description>
		<content:encoded><![CDATA[<p>import urllib<br />
urlencode = lambda s: urllib.urlencode({&#8217;x': s})[2:]<br />
assert urlencode(&#8221;foo bar baz&#8221;) == &#8220;foo+bar+baz&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL on rails by Bas Westerbaan</title>
		<link>http://blog.affien.com/archives/2006/04/01/sql-on-rails/comment-page-1/#comment-178389</link>
		<dc:creator>Bas Westerbaan</dc:creator>
		<pubDate>Fri, 01 May 2009 11:10:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/archives/2006/04/01/sql-on-rails/#comment-178389</guid>
		<description>Map-reduce.  Not exactly a replacement, but hey, it&#039;s fun.</description>
		<content:encoded><![CDATA[<p>Map-reduce.  Not exactly a replacement, but hey, it&#8217;s fun.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL on rails by SQL Tutorials</title>
		<link>http://blog.affien.com/archives/2006/04/01/sql-on-rails/comment-page-1/#comment-178388</link>
		<dc:creator>SQL Tutorials</dc:creator>
		<pubDate>Fri, 01 May 2009 03:05:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/archives/2006/04/01/sql-on-rails/#comment-178388</guid>
		<description>You know, the thing about SQL is, that there is virtually nothing that can replace it. 

Does anyone know if a substitute exists for sql? I mean besides MS SQL and Oracle and all that jazz. Thanks.</description>
		<content:encoded><![CDATA[<p>You know, the thing about SQL is, that there is virtually nothing that can replace it. </p>
<p>Does anyone know if a substitute exists for sql? I mean besides MS SQL and Oracle and all that jazz. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Javascript&#8217;s stupid Date constructor by Bas Westerbaan</title>
		<link>http://blog.affien.com/archives/2009/04/29/javascripts-stupid-date-constructor/comment-page-1/#comment-178387</link>
		<dc:creator>Bas Westerbaan</dc:creator>
		<pubDate>Thu, 30 Apr 2009 09:27:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.affien.com/archives/2009/04/29/javascripts-stupid-date-constructor/#comment-178387</guid>
		<description>If you document stupidity, it&#039;s still stupidity.</description>
		<content:encoded><![CDATA[<p>If you document stupidity, it&#8217;s still stupidity.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Javascript&#8217;s stupid Date constructor by zproxy</title>
		<link>http://blog.affien.com/archives/2009/04/29/javascripts-stupid-date-constructor/comment-page-1/#comment-178386</link>
		<dc:creator>zproxy</dc:creator>
		<pubDate>Thu, 30 Apr 2009 05:50:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.affien.com/archives/2009/04/29/javascripts-stupid-date-constructor/#comment-178386</guid>
		<description>Do read the documentation. Month is a zero based index.</description>
		<content:encoded><![CDATA[<p>Do read the documentation. Month is a zero based index.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Negative .Net myths busted by Bas Westerbaan</title>
		<link>http://blog.affien.com/archives/2005/01/27/negative-net-myths-busted/comment-page-1/#comment-178380</link>
		<dc:creator>Bas Westerbaan</dc:creator>
		<pubDate>Fri, 03 Apr 2009 23:51:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/archives/2005/01/27/negative-net-myths-busted/#comment-178380</guid>
		<description>&lt;blockquote&gt;
This blog is since long old and dead but I thought Iâthrow in my few cents for the late night browsing guys.
&lt;/blockquote&gt;

The comments are still coming in at a steady (slow, but steady nevertheless) rate :).

&lt;blockquote&gt;C++ is still there for those mission critical heuyes space shuttle PICs (if you’d even use C++ for that).
&lt;/blockquote&gt;

I personally wouldn&#039;t use C++ for a space shuttle --- the behaviour of the language is way more complex. Having pointers makes a proof of correctness hell.  MsIL on the other hand, is a lot more amenable.  Pure functional languages even more, if you are into them :).

I agree with you.  C# is the right tool in a lot of cases.  Personally, I like my language even more extreme.  Almost everything I write, now, I write in Python.  It&#039;s slow, sure.  However, the volume of third party libraries is great; the language itself cooperative and when I do want performance, I write a module in C.  Yet I have to agree that Python will never be the Lingua Franca, which Java is and C# will become --- it is a lot easier to write ugly code in Python, whereas in C# you are forced to think a bit. 

&lt;blockquote&gt;
C# has evolved alot since 2005-2006. I can’t say I’ve ever laid eyes on a cleaner and more productive language.
&lt;/blockquote&gt;
What do you think about Python, Ruby, D, Scala and Clean?  I still think C# is a great language, though.</description>
		<content:encoded><![CDATA[<blockquote><p>
This blog is since long old and dead but I thought Iâthrow in my few cents for the late night browsing guys.
</p></blockquote>
<p>The comments are still coming in at a steady (slow, but steady nevertheless) rate <img src='http://blog.affien.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<blockquote><p>C++ is still there for those mission critical heuyes space shuttle PICs (if you’d even use C++ for that).
</p></blockquote>
<p>I personally wouldn&#8217;t use C++ for a space shuttle &#8212; the behaviour of the language is way more complex. Having pointers makes a proof of correctness hell.  MsIL on the other hand, is a lot more amenable.  Pure functional languages even more, if you are into them <img src='http://blog.affien.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>I agree with you.  C# is the right tool in a lot of cases.  Personally, I like my language even more extreme.  Almost everything I write, now, I write in Python.  It&#8217;s slow, sure.  However, the volume of third party libraries is great; the language itself cooperative and when I do want performance, I write a module in C.  Yet I have to agree that Python will never be the Lingua Franca, which Java is and C# will become &#8212; it is a lot easier to write ugly code in Python, whereas in C# you are forced to think a bit. </p>
<blockquote><p>
C# has evolved alot since 2005-2006. I can’t say I’ve ever laid eyes on a cleaner and more productive language.
</p></blockquote>
<p>What do you think about Python, Ruby, D, Scala and Clean?  I still think C# is a great language, though.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
