<?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 on: Functional C#: LINQ vs Method chaining</title>
	<atom:link href="http://www.markhneedham.com/blog/2010/02/05/functional-c-linq-vs-method-chaining/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markhneedham.com/blog/2010/02/05/functional-c-linq-vs-method-chaining/</link>
	<description>Thoughts on Software Development</description>
	<lastBuildDate>Sat, 11 Feb 2012 23:17:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Bent Rasmussen</title>
		<link>http://www.markhneedham.com/blog/2010/02/05/functional-c-linq-vs-method-chaining/comment-page-1/#comment-31682</link>
		<dc:creator>Bent Rasmussen</dc:creator>
		<pubDate>Tue, 09 Feb 2010 07:50:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=2117#comment-31682</guid>
		<description>LINQ syntax is just syntactic sugar for direct method chaining so it depends on what syntax you prefer. I tend to favor method chaining in general.</description>
		<content:encoded><![CDATA[<p>LINQ syntax is just syntactic sugar for direct method chaining so it depends on what syntax you prefer. I tend to favor method chaining in general.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Warren</title>
		<link>http://www.markhneedham.com/blog/2010/02/05/functional-c-linq-vs-method-chaining/comment-page-1/#comment-31632</link>
		<dc:creator>Matt Warren</dc:creator>
		<pubDate>Mon, 08 Feb 2010 10:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=2117#comment-31632</guid>
		<description>There&#039;s a good discussion on StackOverflow that talks about this, see http://stackoverflow.com/questions/214500/.

Also from the msdn page http://msdn.microsoft.com/en-us/library/bb397947.aspx:

In general, we recommend query syntax because it is usually simpler and more readable; however there is no semantic difference between method syntax and query syntax. In addition, some queries, such as those that retrieve the number of elements that match a specified condition, or that retrieve the element that has the maximum value in a source sequence, can only be expressed as method calls.

So there is no difference between the 2 by the time it&#039;s executed.</description>
		<content:encoded><![CDATA[<p>There&#8217;s a good discussion on StackOverflow that talks about this, see <a href="http://stackoverflow.com/questions/214500/" rel="nofollow">http://stackoverflow.com/questions/214500/</a>.</p>
<p>Also from the msdn page <a href="http://msdn.microsoft.com/en-us/library/bb397947.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/bb397947.aspx</a>:</p>
<p>In general, we recommend query syntax because it is usually simpler and more readable; however there is no semantic difference between method syntax and query syntax. In addition, some queries, such as those that retrieve the number of elements that match a specified condition, or that retrieve the element that has the maximum value in a source sequence, can only be expressed as method calls.</p>
<p>So there is no difference between the 2 by the time it&#8217;s executed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: googly</title>
		<link>http://www.markhneedham.com/blog/2010/02/05/functional-c-linq-vs-method-chaining/comment-page-1/#comment-31600</link>
		<dc:creator>googly</dc:creator>
		<pubDate>Sun, 07 Feb 2010 17:07:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=2117#comment-31600</guid>
		<description>@Mark: That is my understanding as well.
Also, in ReSharper, there&#039;s a refactoring command that can convert between the two different statement types.</description>
		<content:encoded><![CDATA[<p>@Mark: That is my understanding as well.<br />
Also, in ReSharper, there&#8217;s a refactoring command that can convert between the two different statement types.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Needham</title>
		<link>http://www.markhneedham.com/blog/2010/02/05/functional-c-linq-vs-method-chaining/comment-page-1/#comment-31576</link>
		<dc:creator>Mark Needham</dc:creator>
		<pubDate>Sun, 07 Feb 2010 02:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=2117#comment-31576</guid>
		<description>I don&#039;t know for definite but I was of the opinion that the LINQ syntax compiles down to be the method calls anyway?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know for definite but I was of the opinion that the LINQ syntax compiles down to be the method calls anyway?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bart Czernicki</title>
		<link>http://www.markhneedham.com/blog/2010/02/05/functional-c-linq-vs-method-chaining/comment-page-1/#comment-31575</link>
		<dc:creator>Bart Czernicki</dc:creator>
		<pubDate>Sun, 07 Feb 2010 02:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=2117#comment-31575</guid>
		<description>I prefer LINQ&#039;s terse and declareative nature.

I think method chaining is valuable in situations where you need to build your queries dynamically.

It would be interesting to see the performance difference between the three options.  My guess would be that F#&#039;s syntax/compiler would be faster and LINQ would take the most memory.</description>
		<content:encoded><![CDATA[<p>I prefer LINQ&#8217;s terse and declareative nature.</p>
<p>I think method chaining is valuable in situations where you need to build your queries dynamically.</p>
<p>It would be interesting to see the performance difference between the three options.  My guess would be that F#&#8217;s syntax/compiler would be faster and LINQ would take the most memory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ola Bini</title>
		<link>http://www.markhneedham.com/blog/2010/02/05/functional-c-linq-vs-method-chaining/comment-page-1/#comment-31540</link>
		<dc:creator>Ola Bini</dc:creator>
		<pubDate>Sat, 06 Feb 2010 09:08:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=2117#comment-31540</guid>
		<description>I think you can use aggregate in the Linq statement to sum it - but I&#039;m not a 100% about that.</description>
		<content:encoded><![CDATA[<p>I think you can use aggregate in the Linq statement to sum it &#8211; but I&#8217;m not a 100% about that.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

