<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" media="screen" href="/App_Themes/default/rss.xslt"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:evnet="http://www.mscommunities.com/rssmodule/"><channel><title>Comment Feed for 10-4 Episode 12: Simplifying Your Code With C# 4.0 (10-4 on Channel 9)</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/shows/10-4/10-4-episode-12-simplifying-your-code-with-c-40/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Comment Feed for 10-4 Episode 12: Simplifying Your Code With C# 4.0 (10-4 on Channel 9)</title><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/</link></image><description>10-4 Episode 12: Simplifying Your Code With C# 4.0</description><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/</link><language>en-us</language><pubDate>Mon, 15 Jun 2009 18:18:00 GMT</pubDate><lastBuildDate>Mon, 15 Jun 2009 18:18:00 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3608.3122, Culture=neutral, PublicKeyToken=null)</generator><item><title>Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>&lt;p&gt;i was searching for this information thanks.&lt;/p&gt;</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=473879</link><pubDate>Mon, 15 Jun 2009 18:18:00 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=473879</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/473879/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>i was searching for this information thanks.</evnet:previewtext><dc:creator>unlock iphone</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/473879/Trackback.aspx</trackback:ping></item><item><title>Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>&lt;p&gt;Great Video!! Cleared things around the default value.&lt;/p&gt;</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=470226</link><pubDate>Fri, 22 May 2009 10:30:17 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=470226</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/470226/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Great Video!! Cleared things around the default value.</evnet:previewtext><dc:creator>Byteware Ltd</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/470226/Trackback.aspx</trackback:ping></item><item><title>Re: Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>Wow, did we miss the mark that much? For a more in-depth, complete video, yes Future of C# (or other C# videos) are much more suitable. However, for a 5-minute screencast that devs can watch in the morning/evening or during their commute to digest various features in VS2010? I think 10-4 is a better fit for that than an hour video interview. To each their own, I suppose.</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=462423</link><pubDate>Wed, 25 Mar 2009 21:18:51 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=462423</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/462423/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Wow, did we miss the mark that much? For a more in-depth, complete video, yes Future of C# (or other C# videos) are much more suitable. However, for a 5-minute screencast that devs can watch in the morning/evening or during their commute to digest various features in VS2010? I think 10-4 is a better&amp;#8230;</evnet:previewtext><dc:creator>Jason Olson</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/462423/Trackback.aspx</trackback:ping></item><item><title>Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>Go watch the entire "The Future of C#" session by Heljsberg. Much more valuable.&lt;br&gt;</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=462312</link><pubDate>Tue, 24 Mar 2009 22:44:22 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=462312</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/462312/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Go watch the entire "The Future of C#" session by Heljsberg. Much more valuable.</evnet:previewtext><dc:creator>kzu</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/462312/Trackback.aspx</trackback:ping></item><item><title>Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>1.) Optional Parameters are a really cool feature. The reason why VB.NET developers did not use it as often is because if you make a dll with your code and a C# developer used it then he had to type every parameter because he had no support for leaving it out.&lt;br&gt;&lt;br&gt;2.) It is not a question of design if you use method overloading or optional parameters. If you have a function with 10 arguments where you should be able to only specify those which you like then you would have hundreds of methods that only call other methods with default values. Often you choose only the most important combinations, but often you also have more then 20 methods.&lt;br&gt;&lt;br&gt;3.) Optional Parameters should not only accept constant values like true or false, but in most cases you need dynamic values. I have a function WriteProtocolEntry(Source as String, Message as String, Date as DateTime)&lt;br&gt;Most Time Date is DateTime.Now. You can not default date to DateTime.Now so you have to use method overloading again.&lt;br&gt;In many of my read/write Functions I have a Timeout. Defaulting it would be nice, but if you move the default value to a config file to change it very easy then you have to use method overloading again or default it to nothing and at the start of the method you write (in VB.NET):&lt;br&gt;If Timeout Is Nothing Then&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timeout=Config.Timeout&lt;br&gt;EndIf&lt;br&gt;&lt;br&gt;If Timeout is an Integer even this is not possible and you have to default it to 0 or -1 or if it is a DateTime you could use DateTime.MinValue and hope that noone will ever write a Protocol Entry with 1/1/0000&lt;br&gt;&lt;br&gt;&lt;br&gt;Another example of the advantage of optional parameters is the creation of Exceptions:&lt;br&gt;&lt;br&gt;Without the use of optional parameters you had to create 6 constructors:&lt;br&gt;Public Sub New()&lt;br&gt;Public Sub New(Message as String)&lt;br&gt;Public Sub New(Message as String, InnerException as Exception)&lt;br&gt;Public Sub New(AdditionalInfo as String)&lt;br&gt;Public Sub New(Message as String, AdditionalInfo as String)&lt;br&gt;Public Sub New(Message as String, InnerException as Exception, AdditionalInfo as String)&lt;br&gt;&lt;br&gt;Each Constructor only calls MyBase.New and I think MyBase.New() will do things like Me.New(Nothing,Nothing)&lt;br&gt;With Optional Parameters you could use:&lt;br&gt;&lt;br&gt;Public Sub New(Message as String=Nothing, InnerExceptions as Exception=Nothing,AdditionalInfo as String=Nothing)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyBase.New(Message,InnerException)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me._AdditionalInfo=AdditionalInfo&lt;br&gt;End Sub&lt;br&gt;&lt;br&gt;And if you want to compile it then you would notice that you have two constructors with the same parameter types (Message as String) and (AdditionalInfo as String).&lt;br&gt;&lt;br&gt;4.) For watching videos I use Media Player Classic and the KLite Codec Pack. With this player you can change the size of the video with the Num Pad.&lt;br&gt;</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=461065</link><pubDate>Sun, 15 Mar 2009 16:06:32 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=461065</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/461065/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>1.) Optional Parameters are a really cool feature. The reason why VB.NET developers did not use it as often is because if you make a dll with your code and a C# developer used it then he had to type every parameter because he had no support for leaving it out.2.) It is not a question of design if&amp;#8230;</evnet:previewtext><dc:creator>andrgin</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/461065/Trackback.aspx</trackback:ping></item><item><title>Re: Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>Definiteley a good question, however i thing that if intellisense were to provide the default value (which sounds correct) it should also provide information on what that default value means. In that sense&amp;nbsp;im guessing&amp;nbsp;that all that information has its own &amp;nbsp;place in the xml tags used for commenting&amp;nbsp; methods, properties , etc. Maybe a good idea would be to provide a new attribute for&amp;nbsp; the param tag&amp;nbsp;used to comment method parameters&amp;nbsp;(which i think will be an easy thing to ).&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=461047</link><pubDate>Sun, 15 Mar 2009 15:01:50 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=461047</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/461047/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Definiteley a good question, however i thing that if intellisense were to provide the default value (which sounds correct) it should also provide information on what that default value means. In that sense&amp;nbsp;im guessing&amp;nbsp;that all that information has its own &amp;nbsp;place in the xml tags used&amp;#8230;</evnet:previewtext><dc:creator>Hector Maldonado</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/461047/Trackback.aspx</trackback:ping></item><item><title>Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>Hello there,&lt;BR&gt;&lt;BR&gt;Not that I don't appreciate the value of these videos.&amp;nbsp; But when are we going to hear about really really cool stuff going on in the next .net framework? For instance I remember that when 2.0 was in beta most of the noise you see around was that the framework doesn't inlined functions if their parameters are ValueTypes, that's serious performance!!&lt;BR&gt;&lt;BR&gt;And what about generics for arithmetic stuff? in 2.0 (or 3.0, 3.5 for that matter) you can write T Sum&amp;lt;T&amp;gt;(T a, T b) { return a + b; } which is great for writing true library templates ala old C++.&lt;BR&gt;&lt;BR&gt;Jason, Hope you can show us more about this</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460826</link><pubDate>Fri, 13 Mar 2009 05:57:34 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460826</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460826/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Hello there,Not that I don't appreciate the value of these videos.&amp;nbsp; But when are we going to hear about really really cool stuff going on in the next .net framework? For instance I remember that when 2.0 was in beta most of the noise you see around was that the framework doesn't inlined&amp;#8230;</evnet:previewtext><dc:creator>raptor3676</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460826/Trackback.aspx</trackback:ping></item><item><title>Re: Re: Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>I get your point, and I agree with the usage you describe. I guess we'll just have to see how the community and the different API developers grasp this new feature.&lt;br&gt;&lt;br&gt;I'm just wondering who actually uses it. I currently work at a company that develops in VB.NET, and none of my fellow developers ever use the optional parameter ability. Where does this general dislike come from, if it's not such a bad idea?&lt;br&gt;&lt;br&gt;Perhaps if we see APIs in the future (from Microsoft in particular) where optional parameters are used in a good way. It might become a more accepted practice.&lt;br&gt;&lt;br&gt;I choose to remain skeptical however.&lt;br&gt;</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460751</link><pubDate>Thu, 12 Mar 2009 20:49:26 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460751</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460751/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I get your point, and I agree with the usage you describe. I guess we'll just have to see how the community and the different API developers grasp this new feature.I'm just wondering who actually uses it. I currently work at a company that develops in VB.NET, and none of my fellow developers ever&amp;#8230;</evnet:previewtext><dc:creator>Mathias Vestergaard</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460751/Trackback.aspx</trackback:ping></item><item><title>Re: Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>Matt, in my opinion, it really depends on the intention of the code. Most of the times I have seen method overloading used to express optional parameters, it is really trying to communicate the idea of "default values". And in my personal opinion, using method overloading to express default values is, in fact, an abuse of method overloading, not vice versa. &lt;BR&gt;&lt;BR&gt;Specifying default values via optional parameters is a more intuitive way to express the concept rather than a bunch of method overloads that simply call a different method overload while passing in a default value to an extra parameter. I think method overloading is ideal for a situation where the overloads are truly different in nature (like one method accepting a string parameter that is the path of a file, and another overload accepting a FileInfo of the file).</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460729</link><pubDate>Thu, 12 Mar 2009 19:12:30 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460729</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460729/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Matt, in my opinion, it really depends on the intention of the code. Most of the times I have seen method overloading used to express optional parameters, it is really trying to communicate the idea of "default values". And in my personal opinion, using method overloading to express default values&amp;#8230;</evnet:previewtext><dc:creator>Jason Olson</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460729/Trackback.aspx</trackback:ping></item><item><title>Re: Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>dev, what specific problem are you having? The code is plenty readable on my end. The problem I have (and it exists with all Channel 9 videos I checked out last night) is that the bottom 1/5-1/6 of the screen is cut off when going to full screen on the Silverlight player. Yes, if you try to view&amp;nbsp;the video in place, you won't be able to see the code as it's too small. Try going full screen on the player though (or downloading the video).&amp;nbsp;</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460728</link><pubDate>Thu, 12 Mar 2009 19:08:16 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460728</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460728/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>dev, what specific problem are you having? The code is plenty readable on my end. The problem I have (and it exists with all Channel 9 videos I checked out last night) is that the bottom 1/5-1/6 of the screen is cut off when going to full screen on the Silverlight player. Yes, if you try to&amp;#8230;</evnet:previewtext><dc:creator>Jason Olson</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460728/Trackback.aspx</trackback:ping></item><item><title>Re: Re: Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>Technicallly the calling codes intent was 'whatever you think best'.. you shouldn't really pick an overload because the current behavior is what you wanted, you should be explicit unless what you actually meant 'I don't care'.. I don't think theres a problem with the chosen behavior however.</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460727</link><pubDate>Thu, 12 Mar 2009 19:08:07 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460727</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460727/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Technicallly the calling codes intent was 'whatever you think best'.. you shouldn't really pick an overload because the current behavior is what you wanted, you should be explicit unless what you actually meant 'I don't care'.. I don't think theres a problem with the chosen behavior however.</evnet:previewtext><dc:creator>stevo_</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460727/Trackback.aspx</trackback:ping></item><item><title>Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>I suggest either the presenter or someone on C9 look at it before posting!&lt;BR&gt;&lt;BR&gt;That would increase the usability of the videos !!!&lt;BR&gt;&lt;BR&gt;If you are presenting something about code and camera is not focussed on code, what is the point of the video then?</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460706</link><pubDate>Thu, 12 Mar 2009 16:43:07 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460706</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460706/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I suggest either the presenter or someone on C9 look at it before posting!That would increase the usability of the videos !!!If you are presenting something about code and camera is not focussed on code, what is the point of the video then?</evnet:previewtext><dc:creator>dev#</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460706/Trackback.aspx</trackback:ping></item><item><title>Re: Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>&lt;BR&gt;Isn't this a good thing, it preservers the original intent of the code?</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460701</link><pubDate>Thu, 12 Mar 2009 15:56:00 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460701</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460701/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Isn't this a good thing, it preservers the original intent of the code?</evnet:previewtext><dc:creator>PerfectPhase</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460701/Trackback.aspx</trackback:ping></item><item><title>Re: Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>Because that's already valid syntax in C# 3.5. In your example, if there is a local variable called copyToWord, what that code does is set it to true and then pass the value true to the first parameter of the method. They needed something that wouldn't conflict with existing syntax and potentially change the meaning of old code.</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460671</link><pubDate>Thu, 12 Mar 2009 13:55:52 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460671</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460671/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Because that's already valid syntax in C# 3.5. In your example, if there is a local variable called copyToWord, what that code does is set it to true and then pass the value true to the first parameter of the method. They needed something that wouldn't conflict with existing syntax and potentially change the meaning of old code.</evnet:previewtext><dc:creator>Sven Groot</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460671/Trackback.aspx</trackback:ping></item><item><title>Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>&lt;P&gt;I'm glad named and optional parameters are added to C# 4.0. But can someone explain the syntax for named parameters. Why do&amp;nbsp;they&amp;nbsp;use a colon&amp;nbsp; : rather than an equals? e.g. GenerateChart(copyToWord = true);&lt;/P&gt;</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460652</link><pubDate>Thu, 12 Mar 2009 10:39:45 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460652</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460652/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I'm glad named and optional parameters are added to C# 4.0. But can someone explain the syntax for named parameters. Why do&amp;nbsp;they&amp;nbsp;use a colon&amp;nbsp; : rather than an equals? e.g. GenerateChart(copyToWord = true);</evnet:previewtext><dc:creator>Flatliner</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460652/Trackback.aspx</trackback:ping></item><item><title>Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>I must say I've never been a fan of optional parameters. For the COM scenario i find it quite great, but for general class development i find it a bad practice.&lt;br&gt;&lt;br&gt;I don't hope people will start abusing this feature and kill the whole overloading design (which is more expressive if you ask me).&lt;br&gt;</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460640</link><pubDate>Thu, 12 Mar 2009 08:32:28 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460640</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460640/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I must say I've never been a fan of optional parameters. For the COM scenario i find it quite great, but for general class development i find it a bad practice.I don't hope people will start abusing this feature and kill the whole overloading design (which is more expressive if you ask me).</evnet:previewtext><dc:creator>Mathias Vestergaard</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460640/Trackback.aspx</trackback:ping></item><item><title>Re: Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>You know, off the top of my head I'm not sure if the value is included in Intellisense&amp;nbsp;or not. If it's not (which I'm thinking is the case), it sounds like a great feature suggestion :). I'll check for sure tomorrow. Thanks!</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460607</link><pubDate>Thu, 12 Mar 2009 02:05:57 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460607</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460607/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>You know, off the top of my head I'm not sure if the value is included in Intellisense&amp;nbsp;or not. If it's not (which I'm thinking is the case), it sounds like a great feature suggestion :). I'll check for sure tomorrow. Thanks!</evnet:previewtext><dc:creator>Jason Olson</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460607/Trackback.aspx</trackback:ping></item><item><title>Re: Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>Nah, like others are mentioned, you can still get a lot of value from that education :). Glad you like the videos and product though!</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460605</link><pubDate>Thu, 12 Mar 2009 02:04:36 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460605</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460605/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Nah, like others are mentioned, you can still get a lot of value from that education :). Glad you like the videos and product though!</evnet:previewtext><dc:creator>Jason Olson</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460605/Trackback.aspx</trackback:ping></item><item><title>Re: Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>Weird, I'm not having the same issue on my end :/. However, I have forwarded another issue to the C9 dev team as the bottom portion of the video is cut-off when going fullscreen :(.</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460604</link><pubDate>Thu, 12 Mar 2009 02:03:59 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460604</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460604/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Weird, I'm not having the same issue on my end :/. However, I have forwarded another issue to the C9 dev team as the bottom portion of the video is cut-off when going fullscreen :(.</evnet:previewtext><dc:creator>Jason Olson</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460604/Trackback.aspx</trackback:ping></item><item><title>Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>same here...lol</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460593</link><pubDate>Thu, 12 Mar 2009 00:11:49 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460593</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460593/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>same here...lol</evnet:previewtext><dc:creator>claudy27</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460593/Trackback.aspx</trackback:ping></item><item><title>Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>Wow, this video is so clear I thought I could click the Visual Studio 'Close' button.</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460572</link><pubDate>Wed, 11 Mar 2009 22:39:42 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460572</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460572/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Wow, this video is so clear I thought I could click the Visual Studio 'Close' button.</evnet:previewtext><dc:creator>SlackmasterK</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460572/Trackback.aspx</trackback:ping></item><item><title>Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>one thing that bugs me is that the default values for a method are moved to the call site at compile time.. in other words, if you have a default value for an argument, that argument wont change in old code even if you change it in your method after the old code is compiled. old code will still use the old default value..&lt;BR&gt;&lt;BR&gt;this is just a detail though :) default values are still awsome. but its something to keep in mind :)</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460545</link><pubDate>Wed, 11 Mar 2009 20:30:30 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460545</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460545/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>one thing that bugs me is that the default values for a method are moved to the call site at compile time.. in other words, if you have a default value for an argument, that argument wont change in old code even if you change it in your method after the old code is compiled. old code will still use&amp;#8230;</evnet:previewtext><dc:creator>Allan Lindqvist</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460545/Trackback.aspx</trackback:ping></item><item><title>Re: Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>Wait until you have to maintain code writte by somebody else, you will find that the concepts your learnt were well worth it. Its fine for code written in 2010, but there is a lot of code writtem before now, that even colllege graduates in 10 years time will have to maintain.&amp;nbsp;&lt;BR&gt;&lt;BR&gt;Cutting corners in Computer Science doesn't not really exist, unless you only ever work on code written from a specific date.</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460524</link><pubDate>Wed, 11 Mar 2009 18:47:18 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460524</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460524/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Wait until you have to maintain code writte by somebody else, you will find that the concepts your learnt were well worth it. Its fine for code written in 2010, but there is a lot of code writtem before now, that even colllege graduates in 10 years time will have to maintain.&amp;nbsp;Cutting corners in&amp;#8230;</evnet:previewtext><dc:creator>vesuvius</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460524/Trackback.aspx</trackback:ping></item><item><title>Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>Hello Jay,&lt;BR&gt;&lt;BR&gt;I cannot see the code when I play it in the Silverlight player, I thought the new VS designer had a vector based code editor? Hope the download is clear!</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460521</link><pubDate>Wed, 11 Mar 2009 18:42:49 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460521</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460521/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Hello Jay,I cannot see the code when I play it in the Silverlight player, I thought the new VS designer had a vector based code editor? Hope the download is clear!</evnet:previewtext><dc:creator>vesuvius</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460521/Trackback.aspx</trackback:ping></item><item><title>Re: 10-4 Episode 12: Simplifying Your Code With C# 4.0</title><description>Man, &lt;BR&gt;&amp;nbsp; you guys are making my expensive college education in Computer Science even more useless.&amp;nbsp; Why did I need to learn about method overload again?&amp;nbsp; Quick question.&amp;nbsp; Does the default value of the default parameter you specify get exposed through intellisense to the comsumer of the method?</description><comments></comments><link>http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460518</link><pubDate>Wed, 11 Mar 2009 18:31:08 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/10-4/10-4-Episode-12-Simplifying-Your-Code-With-C-40/?CommentID=460518</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460518/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Man, &amp;nbsp; you guys are making my expensive college education in Computer Science even more useless.&amp;nbsp; Why did I need to learn about method overload again?&amp;nbsp; Quick question.&amp;nbsp; Does the default value of the default parameter you specify get exposed through intellisense to the comsumer of the method?</evnet:previewtext><dc:creator>Edward Moemeka</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/460518/Trackback.aspx</trackback:ping></item></channel></rss>