<?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: C# Extension methods</title>
	<atom:link href="http://www.tzavellas.com/techblog/2007/06/02/c-extension-methods/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tzavellas.com/techblog/2007/06/02/c-extension-methods/</link>
	<description>Spiros Tzavellas’s blog, mostly on software development and Java.</description>
	<lastBuildDate>Tue, 28 Sep 2010 18:21:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: spiros</title>
		<link>http://www.tzavellas.com/techblog/2007/06/02/c-extension-methods/comment-page-1/#comment-130</link>
		<dc:creator>spiros</dc:creator>
		<pubDate>Fri, 13 Jul 2007 21:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.tzavellas.com/techblog/2007/06/02/c-extension-methods/#comment-130</guid>
		<description>Billie,

I don&#039;t believe that extension methods add confusion because the user has to import them explicitly. Also you could have a visual indicator in your IDE. For example in &lt;a href=&quot;http://www.eclipse.org&quot; rel=&quot;nofollow&quot;&gt;Eclipse&lt;/a&gt; (I am a Java programmer) the static methods appear in italic fonts, so I suppose that in Visual Studio you could have a similar highlighting and because extension methods are actually static method they could also appear in italic fonts.</description>
		<content:encoded><![CDATA[<p>Billie,</p>
<p>I don&#8217;t believe that extension methods add confusion because the user has to import them explicitly. Also you could have a visual indicator in your IDE. For example in <a href="http://www.eclipse.org" rel="nofollow">Eclipse</a> (I am a Java programmer) the static methods appear in italic fonts, so I suppose that in Visual Studio you could have a similar highlighting and because extension methods are actually static method they could also appear in italic fonts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: spiros</title>
		<link>http://www.tzavellas.com/techblog/2007/06/02/c-extension-methods/comment-page-1/#comment-129</link>
		<dc:creator>spiros</dc:creator>
		<pubDate>Fri, 13 Jul 2007 19:08:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.tzavellas.com/techblog/2007/06/02/c-extension-methods/#comment-129</guid>
		<description>Hi Ashok,

I agree with you that EMs can be misused and that we should try to create domain specific objects instead of just adding new methods to general purpose classes like string.</description>
		<content:encoded><![CDATA[<p>Hi Ashok,</p>
<p>I agree with you that EMs can be misused and that we should try to create domain specific objects instead of just adding new methods to general purpose classes like string.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: billie</title>
		<link>http://www.tzavellas.com/techblog/2007/06/02/c-extension-methods/comment-page-1/#comment-128</link>
		<dc:creator>billie</dc:creator>
		<pubDate>Fri, 13 Jul 2007 18:41:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.tzavellas.com/techblog/2007/06/02/c-extension-methods/#comment-128</guid>
		<description>extension methods are syntactic sugar around static method calls.  The syntax fits well with ruby, but now in c# you must ask is this an extension method, or an actual method in the object?  Adds confusion.</description>
		<content:encoded><![CDATA[<p>extension methods are syntactic sugar around static method calls.  The syntax fits well with ruby, but now in c# you must ask is this an extension method, or an actual method in the object?  Adds confusion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashok</title>
		<link>http://www.tzavellas.com/techblog/2007/06/02/c-extension-methods/comment-page-1/#comment-127</link>
		<dc:creator>Ashok</dc:creator>
		<pubDate>Fri, 13 Jul 2007 12:57:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.tzavellas.com/techblog/2007/06/02/c-extension-methods/#comment-127</guid>
		<description>Well, While Extension Methods (EM) provide a useful machanism to add new functionality to an existing base types, it also adds lot of confusion, if lot of extesions are added to base types like string.  If developers keeping adding more methods to base classes for every single requirement just becuase it improves the readability (string email; email.IsValid()) then don&#039;t you think these all unnessary EMs clutter the code in the IDE (intellisense)

I think there are some good reasons we need it but extending base type is not really a good idea I guess.

What I suggest is using/creating Money (http://www.martinfowler.com/eaaCatalog/money.html) like classes for all your requirements :)


Regards,
...Ashok</description>
		<content:encoded><![CDATA[<p>Well, While Extension Methods (EM) provide a useful machanism to add new functionality to an existing base types, it also adds lot of confusion, if lot of extesions are added to base types like string.  If developers keeping adding more methods to base classes for every single requirement just becuase it improves the readability (string email; email.IsValid()) then don&#8217;t you think these all unnessary EMs clutter the code in the IDE (intellisense)</p>
<p>I think there are some good reasons we need it but extending base type is not really a good idea I guess.</p>
<p>What I suggest is using/creating Money (<a href="http://www.martinfowler.com/eaaCatalog/money.html" rel="nofollow">http://www.martinfowler.com/eaaCatalog/money.html</a>) like classes for all your requirements <img src='http://www.tzavellas.com/techblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Regards,<br />
&#8230;Ashok</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: spiros</title>
		<link>http://www.tzavellas.com/techblog/2007/06/02/c-extension-methods/comment-page-1/#comment-126</link>
		<dc:creator>spiros</dc:creator>
		<pubDate>Sun, 17 Jun 2007 05:40:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.tzavellas.com/techblog/2007/06/02/c-extension-methods/#comment-126</guid>
		<description>Hi Chris,

I am not a C# programmer and unfortunately I do not have a windows machine to try C# and  see exactly how extension methods work.

From my understanding I can&#039;t see how extension methods can affect the security of a program. It would be nice if you could give a concrete example to base our discussion.

Thank you for the comment and sorry for my late reply.</description>
		<content:encoded><![CDATA[<p>Hi Chris,</p>
<p>I am not a C# programmer and unfortunately I do not have a windows machine to try C# and  see exactly how extension methods work.</p>
<p>From my understanding I can&#8217;t see how extension methods can affect the security of a program. It would be nice if you could give a concrete example to base our discussion.</p>
<p>Thank you for the comment and sorry for my late reply.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

