<?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: Why we need named parameters</title>
	<atom:link href="http://lostechies.com/jimmybogard/2008/12/18/why-we-need-named-parameters/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/jimmybogard/2008/12/18/why-we-need-named-parameters/</link>
	<description>Strong opinions, weakly held</description>
	<lastBuildDate>Sun, 19 May 2013 03:22:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Jason Olson</title>
		<link>http://lostechies.com/jimmybogard/2008/12/18/why-we-need-named-parameters/#comment-1116</link>
		<dc:creator>Jason Olson</dc:creator>
		<pubDate>Sat, 20 Dec 2008 07:44:19 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/12/18/why-we-need-named-parameters.aspx#comment-1116</guid>
		<description>There&#039;s another simple example of why named parameters are nice: boolean parameters. If I have a couple of boolean parameters, what do they mean?

myClass.SomeMethod(true, false, true);

How do I know what that does? Named parameters will help us developers write maintainable code that developers can more easily read after-the-fact without having to rely on Intellisense (after all, I HATE reading code where I _have_ to rely on Intellisense to figure out what the heck is going on)...</description>
		<content:encoded><![CDATA[<p>There&#8217;s another simple example of why named parameters are nice: boolean parameters. If I have a couple of boolean parameters, what do they mean?</p>
<p>myClass.SomeMethod(true, false, true);</p>
<p>How do I know what that does? Named parameters will help us developers write maintainable code that developers can more easily read after-the-fact without having to rely on Intellisense (after all, I HATE reading code where I _have_ to rely on Intellisense to figure out what the heck is going on)&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bogardj</title>
		<link>http://lostechies.com/jimmybogard/2008/12/18/why-we-need-named-parameters/#comment-1115</link>
		<dc:creator>bogardj</dc:creator>
		<pubDate>Fri, 19 Dec 2008 15:56:01 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/12/18/why-we-need-named-parameters.aspx#comment-1115</guid>
		<description>@Ben

No, see my previous comment.  Overloads and fluent builders are sometimes just hacks around doing named parameters.</description>
		<content:encoded><![CDATA[<p>@Ben</p>
<p>No, see my previous comment.  Overloads and fluent builders are sometimes just hacks around doing named parameters.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://lostechies.com/jimmybogard/2008/12/18/why-we-need-named-parameters/#comment-1114</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Fri, 19 Dec 2008 15:19:17 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/12/18/why-we-need-named-parameters.aspx#comment-1114</guid>
		<description>Named parameters would be nice to have. But isn&#039;t this solved by overloads?</description>
		<content:encoded><![CDATA[<p>Named parameters would be nice to have. But isn&#8217;t this solved by overloads?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bogardj</title>
		<link>http://lostechies.com/jimmybogard/2008/12/18/why-we-need-named-parameters/#comment-1113</link>
		<dc:creator>bogardj</dc:creator>
		<pubDate>Fri, 19 Dec 2008 14:48:37 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/12/18/why-we-need-named-parameters.aspx#comment-1113</guid>
		<description>@Rob

So the example I had was Regex.IsMatch - both are strings, and should be, but the order is important.  Named parameters would eliminate bugs and confusion.

But definitely get your drift - strongly-typed reflection goes a long way to eliminating &quot;magic strings&quot;.</description>
		<content:encoded><![CDATA[<p>@Rob</p>
<p>So the example I had was Regex.IsMatch &#8211; both are strings, and should be, but the order is important.  Named parameters would eliminate bugs and confusion.</p>
<p>But definitely get your drift &#8211; strongly-typed reflection goes a long way to eliminating &#8220;magic strings&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://lostechies.com/jimmybogard/2008/12/18/why-we-need-named-parameters/#comment-1112</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Fri, 19 Dec 2008 12:44:49 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/12/18/why-we-need-named-parameters.aspx#comment-1112</guid>
		<description>What I&#039;d like to see is less use of primitive types as parameters to both methods and constructors.  A lot of the problems people have with not being able to &quot;remember what should be what&quot; is that method calls like this shouldn&#039;t be taking strings for the names.  </description>
		<content:encoded><![CDATA[<p>What I&#8217;d like to see is less use of primitive types as parameters to both methods and constructors.  A lot of the problems people have with not being able to &#8220;remember what should be what&#8221; is that method calls like this shouldn&#8217;t be taking strings for the names.  </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Gregory</title>
		<link>http://lostechies.com/jimmybogard/2008/12/18/why-we-need-named-parameters/#comment-1111</link>
		<dc:creator>James Gregory</dc:creator>
		<pubDate>Fri, 19 Dec 2008 08:27:48 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/12/18/why-we-need-named-parameters.aspx#comment-1111</guid>
		<description>I think I agree with everyone here. Named parameters shouldn&#039;t stop our regular refactoring efforts, but they will make existing code a lot nicer to use.</description>
		<content:encoded><![CDATA[<p>I think I agree with everyone here. Named parameters shouldn&#8217;t stop our regular refactoring efforts, but they will make existing code a lot nicer to use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bogardj</title>
		<link>http://lostechies.com/jimmybogard/2008/12/18/why-we-need-named-parameters/#comment-1110</link>
		<dc:creator>bogardj</dc:creator>
		<pubDate>Thu, 18 Dec 2008 23:30:31 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/12/18/why-we-need-named-parameters.aspx#comment-1110</guid>
		<description>@derick

You *may* need to.  But since .NET doesn&#039;t have first class hashes like Ruby, long parameter lists are often the only way to go....sometimes.  And I don&#039;t know your experience with parameter objects, but mine hasn&#039;t been that great.

Also, when two parameters are of the same type, it can be tough to remember what should be what.</description>
		<content:encoded><![CDATA[<p>@derick</p>
<p>You *may* need to.  But since .NET doesn&#8217;t have first class hashes like Ruby, long parameter lists are often the only way to go&#8230;.sometimes.  And I don&#8217;t know your experience with parameter objects, but mine hasn&#8217;t been that great.</p>
<p>Also, when two parameters are of the same type, it can be tough to remember what should be what.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Scheirman</title>
		<link>http://lostechies.com/jimmybogard/2008/12/18/why-we-need-named-parameters/#comment-1109</link>
		<dc:creator>Ben Scheirman</dc:creator>
		<pubDate>Thu, 18 Dec 2008 19:55:19 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/12/18/why-we-need-named-parameters.aspx#comment-1109</guid>
		<description>I agree with Derik, but it would still be nice to have.  We have loads of APIs out there that look like this today.

Attributes have this, why can&#039;t methods?</description>
		<content:encoded><![CDATA[<p>I agree with Derik, but it would still be nice to have.  We have loads of APIs out there that look like this today.</p>
<p>Attributes have this, why can&#8217;t methods?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://lostechies.com/jimmybogard/2008/12/18/why-we-need-named-parameters/#comment-1108</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Thu, 18 Dec 2008 18:24:01 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/12/18/why-we-need-named-parameters.aspx#comment-1108</guid>
		<description>I concur with Mr. Bailey.</description>
		<content:encoded><![CDATA[<p>I concur with Mr. Bailey.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: derick.bailey</title>
		<link>http://lostechies.com/jimmybogard/2008/12/18/why-we-need-named-parameters/#comment-1107</link>
		<dc:creator>derick.bailey</dc:creator>
		<pubDate>Thu, 18 Dec 2008 14:29:18 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/12/18/why-we-need-named-parameters.aspx#comment-1107</guid>
		<description>&quot;especially when the number of arguments grows in a method call&quot;

isn&#039;t that usually a design smell to say that you may need to consolidate parameters into DTOs, or re-examine your SoC/SRP?</description>
		<content:encoded><![CDATA[<p>&#8220;especially when the number of arguments grows in a method call&#8221;</p>
<p>isn&#8217;t that usually a design smell to say that you may need to consolidate parameters into DTOs, or re-examine your SoC/SRP?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
